Type.TypeInitializer Propriedade

Definição

Obtém o inicializador do tipo.

public:
 property System::Reflection::ConstructorInfo ^ TypeInitializer { System::Reflection::ConstructorInfo ^ get(); };
public System.Reflection.ConstructorInfo? TypeInitializer { [System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.NonPublicConstructors | System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicConstructors)] get; }
public System.Reflection.ConstructorInfo TypeInitializer { get; }
public System.Reflection.ConstructorInfo? TypeInitializer { get; }
[System.Runtime.InteropServices.ComVisible(true)]
public System.Reflection.ConstructorInfo TypeInitializer { get; }
[<get: System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.NonPublicConstructors | System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicConstructors)>]
member this.TypeInitializer : System.Reflection.ConstructorInfo
member this.TypeInitializer : System.Reflection.ConstructorInfo
[<System.Runtime.InteropServices.ComVisible(true)>]
member this.TypeInitializer : System.Reflection.ConstructorInfo
Public ReadOnly Property TypeInitializer As ConstructorInfo

Valor da propriedade

Um objeto que contém o nome do construtor de classe para o Type.

Implementações

Atributos

Comentários

Inicializadores de classe também estão disponíveis por meio do FindMembers método ou por meio de sobrecargas dos GetMemberGetMembersGetConstructormétodos, e GetConstructors métodos que tomam BindingFlags como parâmetro.

Se a corrente Type representar um parâmetro de tipo na definição de um tipo genérico ou método genérico, essa propriedade retornará null.

Aplica-se a

Confira também