因为公用建构函式会建立型别的执行个体,而且您无法建立抽象型别的执行个体,因此具有公用建构函式的抽象型别设计不正确。
Because public constructors create instances of a type, and you cannot create instances of an abstract type, an abstract type that has a public constructor is incorrectly designed.
否则,新项目也可以透过其公用预设建构函式自动建立。
Otherwise, the new item is automatically created through its public default constructor.
搜寻其参数符合在指定阵列中的型别的公用执行个体建构函式。
Searches for a public instance constructor whose parameters match the types in the specified array.
搜寻其参数符合在指定阵列中的型别的公用执行个体建构函式。
Searches for a public instance constructor whose parameters match the types in the specified array.
应用推荐