Type.TypeInitializer Proprietà

Definizione

Ottiene l'inizializzatore per il tipo.

public:
 property System::Reflection::ConstructorInfo ^ TypeInitializer { System::Reflection::ConstructorInfo ^ get(); };
public System.Reflection.ConstructorInfo TypeInitializer { get; }
[System.Runtime.InteropServices.ComVisible(true)]
public System.Reflection.ConstructorInfo TypeInitializer { get; }
member this.TypeInitializer : System.Reflection.ConstructorInfo
[<System.Runtime.InteropServices.ComVisible(true)>]
member this.TypeInitializer : System.Reflection.ConstructorInfo
Public ReadOnly Property TypeInitializer As ConstructorInfo

Valore della proprietà

Oggetto contenente il nome del costruttore della classe per .Type

Implementazioni

Attributi

Commenti

Gli inizializzatori di classe sono disponibili anche tramite il FindMembers metodo o tramite overload dei GetMembermetodi , GetMembersGetConstructor, e GetConstructors che accettano BindingFlags come parametro.

Se l'oggetto corrente Type rappresenta un parametro di tipo nella definizione di un tipo generico o di un metodo generico, questa proprietà restituisce null.

Si applica a

Vedi anche