[]
        
(Showing Draft Content)

C1.Util.DX.DXUtil.GetCustomAttribute

GetCustomAttribute Method

GetCustomAttribute<T>(MemberInfo, bool)

Gets the custom attribute.

Declaration
public static T GetCustomAttribute<T>(MemberInfo memberInfo, bool inherited = false) where T : Attribute
Parameters
Type Name Description
MemberInfo memberInfo

The member info.

bool inherited

if set to true [inherited].

Returns
Type Description
T

The custom attribute or null if not found.

Type Parameters
Name Description
T

Type of the custom attribute.