TRttiObjectHelper.GetCustomAttribute<T>(Boolean) Method

Enumerates all applied custom attributes and returns the first one which is/inherits the specified type.

Namespace: Spring.Reflection
public
 function GetCustomAttribute<T: TCustomAttribute>(inherit: Boolean = False): T; overload;

Type Parameters

T

Parameters

inherit
Type: Boolean

Return Value

Type: T