Type.EmptyTypes Feld

Definition

Stellt ein leeres Array vom Type-Typ dar. Dieses Feld ist schreibgeschützt.

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

Feldwert

Type[]

Beispiele

Das folgende Codebeispiel zeigt das -Feld, das in einer der -Methoden verwendet wird, um einen Konstruktor ohne EmptyTypes GetConstructor Parameter zu erhalten.

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)

Gilt für