可能是以下几种原因: 0、必须要有关键字属性; 1、属性名需为id,否则在上面使用[Key]注解; 2、关键字应为属性,不能是字段,没有get/set也会报错; 3、关键字需public; 4、关键字需要 CLS-compliant
DllImport ("mylib")] public static extern StructWrapper ReturnByValue (); /* ReturnByReference: CLS-compliant runtime, so it's not identical to ClassWrapper.ReturnByReference */ /* DoubleIndirection: CLS-compliant : the "type-safe" way, which involves using pointers and the "unsafe" C# language features, and the CLS-compliant
BooGame是面相对象的 CLS-compliant,开源2D游戏引擎框架。它提供了高级的硬件加速video,audio,keyboard,mouse,内嵌脚本和许多图片格式。