TRttiTypeHelper.IsGenericTypeOf<T> Method

Overloads

IsGenericTypeOf(string)

Determines whether the current type is of the specified generic type.

IsGenericTypeOf(PTypeInfo)
IsGenericTypeOf<T>

IsGenericTypeOf(string)

Determines whether the current type is of the specified generic type.

Delphi
function IsGenericTypeOf(const genericType: string): Boolean

Parameters

genericType
string

The generic type definition of the type to check for

Returns

Boolean

IsGenericTypeOf(PTypeInfo)

Delphi
function IsGenericTypeOf(genericType: PTypeInfo): Boolean

Parameters

genericType
PTypeInfo

Returns

Boolean

IsGenericTypeOf<T>

Delphi
function IsGenericTypeOf<T>: Boolean

Type Parameters

T

Returns

Boolean