TRttiObjectHelper.TryGetCustomAttribute<T>(T,Boolean) Method

Try getting a custom attribute class which is applied by the type.

Namespace: Spring.Reflection
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