Get the Type of a generic type argument at certain position from a method.
Namespace: Cartella.SupportAssembly: CartellaBase (in CartellaBase.dll) Version: 4.1.0.171 (4.1.0.171)
Syntax
| C# |
|---|
public static Type GetGenericArgumentType(
MethodBase method,
int genericArgumentIndex
) |
| Visual Basic |
|---|
Public Shared Function GetGenericArgumentType ( _
method As MethodBase, _
genericArgumentIndex As Integer _
) As Type |
| Visual C++ |
|---|
public:
static Type^ GetGenericArgumentType(
MethodBase^ method,
int genericArgumentIndex
) |
Return Value
Type of generic argument or not if position is out of range
Exceptions
See Also