Type.EmptyTypes Feld

Definition

Stellt ein leeres Array vom Typ Typedar. 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 EmptyTypes in einer der GetConstructor Methoden zum Abrufen eines Konstruktors verwendet wird, der keine Parameter akzeptiert.

cInfo = type.GetConstructor (BindingFlags.ExactBinding, null,
         Type.EmptyTypes, null);
let cInfo = typ.GetConstructor(BindingFlags.ExactBinding, null, Type.EmptyTypes, null)
cInfo = type.GetConstructor(BindingFlags.ExactBinding, _
   Nothing, Type.EmptyTypes, Nothing)

Gilt für: