Type.EmptyTypes 欄位

定義

表示 Type 類型的空陣列。 此欄位為唯讀。

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 ,以取得不接受任何參數的函式。

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)

適用於