TRttiObjectHelper.GetCustomAttribute<T> Method
Overloads
| GetCustomAttribute(TAttributeClass, Boolean) | |
| GetCustomAttribute<T>(Boolean) |
Enumerates all applied custom attributes and returns the first one which is/inherits the specified type. |
Delphi
function GetCustomAttribute(attributeClass: TAttributeClass; inherit: Boolean = False): TCustomAttribute
Parameters
- attributeClass
- TAttributeClass
- inherit
- Boolean
Returns
TCustomAttribute