【发布时间】:2017-06-22 07:40:31
【问题描述】:
当我在 Class 上使用 GetType 时,Void .ctor() 出现在 DeclareMembers 上。
但是这个类没有名为 Void .ctor() 的成员。
什么是 Void .ctor()?
【问题讨论】:
-
类的构造函数。你可以通过
GetConstructors()获得它 -
这是一个默认构造函数。
标签: c# reflection types