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)

適用於