TRttiObjectHelper.GetCustomAttributes<T> Method

Overloads

GetCustomAttributes(TAttributeClass, Boolean)
GetCustomAttributes<T>(Boolean)

Gets an array which contains all custom attribute types which the type applies.

GetCustomAttributes(TAttributeClass, Boolean)

Delphi
function GetCustomAttributes(attributeClass: TAttributeClass; inherit: Boolean = False): TArray<TCustomAttribute>

Parameters

attributeClass
TAttributeClass
inherit
Boolean

Returns

TArray<TCustomAttribute>

GetCustomAttributes<T>(Boolean)

Gets an array which contains all custom attribute types which the type applies.

Delphi
function GetCustomAttributes<T>(inherit: Boolean = False): TArray<T>

Type Parameters

T

Parameters

inherit
Boolean

Returns

TArray<T>