TRttiObjectHelper.HasCustomAttribute<T> Method

Overloads

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

Determines whether the type applies the specified custom attribute class.

HasCustomAttribute(TAttributeClass, Boolean)

Delphi
function HasCustomAttribute(attributeClass: TAttributeClass; inherit: Boolean = False): Boolean

Parameters

attributeClass
TAttributeClass
inherit
Boolean

Returns

Boolean

HasCustomAttribute<T>(Boolean)

Determines whether the type applies the specified custom attribute class.

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

Type Parameters

T

Parameters

inherit
Boolean

Returns

Boolean