A managed class cannot have a static constructor that also has a member initialization list.
托管类中不能有本身有成员初始化列表的静态构造函数。
An instance is needed to take the address of nonstatic data members of a managed class or interface.
需要某实例来获取托管类或接口的非静态数据成员的地址。
When designing a managed class for platform invoke, consider the relationships between classes and DLL functions.
为平台调用设计托管类时,应考虑类和dll函数之间的关系。
You can get or set a property exposed by a COM object the way you get and set properties exposed by a managed class.
按照获取和设置托管类所公开的属性时所采用的方式,您可以获取或设置COM对象所公开的属性。
Wrapping a frequently used DLL function in a managed class is an effective approach to encapsulate platform functionality.
要封装平台功能,一种有效的方法是将常用的DLL函数包装在托管类中。
Managed clients can create a new instance of a COM type in the usual way and obtain class information through metadata as they would for any other managed class.
托管客户端可以按常规方式创建COM类型的新实例,然后通过元数据获取类信息,就像处理其他任何托管类一样。
Declaration of a Managed Class Type.
托管类类型的声明。
Declaration of a Managed Class Type.
托管类类型的声明。
应用推荐