MethodBase.IsConstructor Proprietà

Definizione

Ottiene un valore che indica se il metodo è un costruttore.

public:
 property bool IsConstructor { bool get(); };
public bool IsConstructor { get; }
[System.Runtime.InteropServices.ComVisible(true)]
public bool IsConstructor { get; }
member this.IsConstructor : bool
[<System.Runtime.InteropServices.ComVisible(true)>]
member this.IsConstructor : bool
Public ReadOnly Property IsConstructor As Boolean

Valore della proprietà

Boolean

true se il metodo è un costruttore rappresentato da un oggetto ConstructorInfo (vedere la nota sugli oggetti ConstructorBuilder nella sezione Osservazioni); in caso contrario, false.

Implementazioni

Attributi

Commenti

Nota

La proprietà restituisce per un oggetto in un tipo dinamico, a meno che il flag non sia stato incluso nel parametro IsConstructor quando è stato definito il false ConstructorBuilder MethodAttributes.RTSpecialName attributes costruttore. L'omissione RTSpecialName del flag non influisce sulla correttezza del costruttore generato.

Si applica a

Vedi anche