TRttiTypeHelper.GetGenericArguments Method

Definition

Gets an array of types which contains all generic arguments.

Delphi
function GetGenericArguments: TArray<TRttiType>

Returns

TArray<TRttiType>

Remarks

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 .