[]
        
(Showing Draft Content)

C1.Util.DX.DXUtil.GetCustomAttributes

GetCustomAttributes Method

GetCustomAttributes<T>(MemberInfo, bool)

Gets the custom attributes.

Declaration
public static IEnumerable<T> GetCustomAttributes<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
IEnumerable<T>

The custom attribute or null if not found.

Type Parameters
Name Description
T

Type of the custom attribute.