我们拥有一个温和的体积(40-奇功能),需要从C#项目中提用。 这些职能自然会中断,形成几个类别,包括提交项目其余部分的APIC。
是否有任何客观理由倾向于使用P/Invoke或C++/CLI,以防在APIC之下,从强力、可维持性、部署性、......?
我认为,这些问题可能是这样,但问题是:
- C++/CLI will require a separate assembly; the P/Invoke classes can be in the main assembly. (We ve already got multiple assemblies, and there ll be the C DLLs anyway, so not a major issue.)
- Performance doesn t seem to differ noticeably between the two methods.
我不肯定的是:
- My feeling is C++/CLI will be easier to debug if there s an interop problem; is this true?
- Language familiarity - enough people know C# and C++, but knowledge of details of C++/CLI are rarer here.
任何其他东西?