Click or drag to resize
TypeGetGenericTypeDefinition Method
Returns a Type object that represents a generic type definition from which the current generic type can be constructed.

Namespace: System
Assembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
public virtual Type GetGenericTypeDefinition()

Return Value

Type: Type
A Type object representing a generic type from which the current type can be constructed.
Exceptions
ExceptionCondition
InvalidOperationExceptionThe current type is not a generic type. That is, IsGenericType returns false.
NotSupportedExceptionThe invoked method is not supported in the base class. Derived classes must provide an implementation.
See Also