Nyelv

GenericTypeParameterBuilder.DeclaringMethod Tulajdonság

Definíció

MethodInfo Lekéri a deklarálási metódust, ha az aktuális GenericTypeParameterBuilder egy általános metódus típusparaméterét jelöli.

public:
 virtual property System::Reflection::MethodBase ^ DeclaringMethod { System::Reflection::MethodBase ^ get(); };
public override System.Reflection.MethodBase? DeclaringMethod { get; }
public override System.Reflection.MethodBase DeclaringMethod { get; }
member this.DeclaringMethod : System.Reflection.MethodBase
Public Overrides ReadOnly Property DeclaringMethod As MethodBase

Tulajdonság értéke

A MethodInfo deklarálási metódust jelképező érték, ha az aktuális GenericTypeParameterBuilder érték egy általános metódus típusparaméterét jelöli, ellenkező esetben null.

Megjegyzések

Ha a DeclaringMethod tulajdonság nem null, akkor a deklarálási módszer egy általános metódusdefiníció, és DeclaringMethod.IsGenericMethodDefinition az true.

A következőre érvényes: