TypeBuilder.DeclaringMethod Property

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.

NoteNote

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

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft