Share via


GenericTypeParameterBuilder.GetGenericTypeDefinition Method

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

Not valid for generic type parameters.

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

Syntax

'Declaration
Public Overrides Function GetGenericTypeDefinition As Type
public override Type GetGenericTypeDefinition()

Return Value

Type: System.Type
Not valid for generic type parameters.

Exceptions

Exception Condition
InvalidOperationException

In all cases.

Remarks

In a constructed type, the type that is assigned to a generic type parameter can be a generic type, but the type parameter itself is not 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.