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.

TypeBuilder::DeclaringMethod Property

 

Gets the method that declared the current generic type parameter.

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

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

Property Value

Type: System.Reflection::MethodBase^

A MethodBase that represents the method that declared the current type, if the current type is a generic type parameter; otherwise, null.

System_CAPS_noteNote

When emitting code, a generic type parameter is represented by a GenericTypeParameterBuilder object rather than by a TypeBuilder object.

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