Click or drag to resize
TypeGetGenericArguments Method
Returns an array of Type objects that represent the type arguments of a generic type or the type parameters of a generic type definition.

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

Return Value

Type: Type
An array of Type objects that represent the type arguments of a generic type. Returns an empty array if the current type is not a generic type.
Exceptions
ExceptionCondition
NotSupportedExceptionThe invoked method is not supported in the base class. Derived classes must provide an implementation.
See Also