TRttiObjectHelper.TryGetCustomAttribute<T>(T,Boolean) Method
Try getting a custom attribute class which is applied by the type.
public
function TryGetCustomAttribute<T: TCustomAttribute>(out attribute: T;
inherit: Boolean = False): Boolean; overload;
Type Parameters
- T
Parameters
- attribute
- Type: T
- inherit
- Type: Boolean
Return Value
Type: Boolean