Share via


GenericTypeParameterBuilder.DeclaringMethod Property

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Gets a MethodInfo that represents the declaring method, if the current GenericTypeParameterBuilder represents a type parameter of a generic method.

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

Syntax

'Declaration
Public Overrides ReadOnly Property DeclaringMethod As MethodBase
public override MethodBase DeclaringMethod { get; }

Property Value

Type: System.Reflection.MethodBase
A MethodInfo that represents the declaring method, if the current GenericTypeParameterBuilder represents a type parameter of a generic method; otherwise, nulla null reference (Nothing in Visual Basic).

Remarks

If the DeclaringMethod property is not nulla null reference (Nothing in Visual Basic), then the declaring method is a generic method definition and DeclaringMethod.IsGenericMethodDefinition is true.

Version Information

Silverlight

Supported in: 5, 4, 3

Platforms

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