Type.EmptyTypes Type.EmptyTypes Type.EmptyTypes Type.EmptyTypes Field

定义

表示 Type 类型的空数组。Represents an empty array of type Type. 此字段为只读。This field is read-only.

public: static initonly cli::array <Type ^> ^ EmptyTypes;
public static readonly Type[] EmptyTypes;
 staticval mutable EmptyTypes : Type[]
Public Shared ReadOnly EmptyTypes As Type() 

字段值

Type[]

示例

下面的代码示例演示EmptyTypes了一个GetConstructor方法中使用的字段,用于获取不带参数的构造函数。The following code example shows the EmptyTypes field used in one of the GetConstructor methods to get a constructor that takes no parameters.

cInfo = type->GetConstructor( BindingFlags::ExactBinding, nullptr,
   Type::EmptyTypes, nullptr );
cInfo = type.GetConstructor (BindingFlags.ExactBinding, null, 
         Type.EmptyTypes, null);
cInfo = type.GetConstructor(BindingFlags.ExactBinding, _
   Nothing, Type.EmptyTypes, Nothing)

适用于