GetGenericTypeDefinition Method

GenericTypeParameterBuilder.GetGenericTypeDefinition Method ()

 

Not valid for generic type parameters.

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

public override Type GetGenericTypeDefinition()

Return Value

Type: System.Type

Not valid for generic type parameters.

Exception Condition
InvalidOperationException

In all cases.

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.

.NET Framework
Available since 2.0
Silverlight
Available since 2.0
Return to top
Show:
© 2016 Microsoft