TRttiTypeHelper.GetGenericArguments Method

Gets an array of types which contains all generic arguments.

Namespace: Spring.Reflection
public
 function GetGenericArguments: TArray<TRttiType>;

Return Value

Type: TArray<TRttiType>

 

This method extracts generic arguments from the name of the generic type. Invoking the method on the type TDictionary<Integer,string> for example will return an array which contains two types: System.Integer and System.string.