GenericTypeParameterBuilder::DeclaringMethod Property

 

Gets a MethodInfo that represents the declaring method, if the current GenericTypeParameterBuilder represents a type parameter of a generic method.

Namespace:   System.Reflection.Emit
Assembly:  mscorlib (in mscorlib.dll)

public:
property MethodBase^ DeclaringMethod {
	virtual MethodBase^ get() override;
}

Property Value

Type: System.Reflection::MethodBase^

A MethodInfo that represents the declaring method, if the current GenericTypeParameterBuilder represents a type parameter of a generic method; otherwise, null.

If the DeclaringMethod property is not null, then the declaring method is a generic method definition and DeclaringMethod.IsGenericMethodDefinition is true.

.NET Framework
Available since 2.0
Silverlight
Available since 2.0
Return to top
Show: