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: