Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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:
© 2017 Microsoft