ReflectionExtensions.GetCustomAttributes method
Version 1.1.28
.NET Framework 4.8
Namespace | Skybrud.Essentials.Reflection.Extensions |
---|---|
Assembly | Skybrud.Essentials.dll |
GetCustomAttributes<T>(Enum)
Extension method
Returns an array of attributes of type T
.
public static T[] GetCustomAttributes<T>(this Enum value)
Type Parameters
T
The type of the attributes to return.
Parameters
value
Enum
The enum value to get attributes for.
Returns
Array of
T
An array of T
.
GetCustomAttributes<T>(MemberInfo)
Extension method
Returns an array of attributes of type T
.
public static T[] GetCustomAttributes<T>(this MemberInfo member)
Type Parameters
T
The type of the attributes to return.
Parameters
member
MemberInfo
The member holding the attributes.
Returns
Array of
T
An array of T
.
GetCustomAttributes<T>(Type)
Extension method
Returns an array of attributes of type T
.
public static T[] GetCustomAttributes<T>(this Type type)
Type Parameters
T
The type of the attributes to return.
Parameters
type
Type
The type holding the attributes.
Returns
Array of
T
An array of T
.