Freigeben über


GenericTypeParameterBuilder.DeclaringType Property

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

Gets the generic type definition or generic method definition to which the generic type parameter belongs.

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

Syntax

'Declaration
Public Overrides ReadOnly Property DeclaringType As Type
public override Type DeclaringType { get; }

Property Value

Type: System.Type
If the type parameter belongs to a generic type, a Type object representing that generic type; if the type parameter belongs to a generic method, a Type object representing that type that declared that generic method.

Remarks

The declaring type is not necessarily a generic type. If the current type parameter belongs to a generic method, the type in which the method is declared might not be generic.

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.