TypeBuilder.DeclaringMethod Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets the method that declared the current generic type parameter.

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

public override MethodBase DeclaringMethod { get; }

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: