Get the Type of generic type argument at a certain position.
Namespace: Cartella.SupportAssembly: CartellaBase (in CartellaBase.dll) Version: 4.1.0.171 (4.1.0.171)
Syntax
C# |
---|
public static Type GetGenericArgumentType(
Object instance,
int genericArgumentIndex
) |
Visual Basic |
---|
Public Shared Function GetGenericArgumentType ( _
instance As Object, _
genericArgumentIndex As Integer _
) As Type |
Visual C++ |
---|
public:
static Type^ GetGenericArgumentType(
Object^ instance,
int genericArgumentIndex
) |
Parameters
- instance
- Type: System..::..Object
Instance of the object from which to retrieve the type information
- genericArgumentIndex
- Type: System..::..Int32
Position of the generic argument
Return Value
Type of the generic argument
Exceptions
See Also