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
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.

Silverlight

Supported in: 5, 4, 3

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

ADD
Show: