| ExtensionsReflectionGetCustomAttributeTAttib, TEnum Method |
Gets the attribute of an enum member
Namespace:
Cauldron
Assembly:
Cauldron.Activator (in Cauldron.Activator.dll) Version: 3.2.0.1 (3.2.0.1)
Syntax public static TAttib GetCustomAttribute<TAttib, TEnum>(
this TEnum enumValue
)
where TAttib : Attribute
where TEnum : struct, new(), IConvertible
Parameters
- enumValue
- Type: TEnum
The enum member value
Type Parameters
- TAttib
- The attribute to retrieve
- TEnum
- The enum type
Return Value
Type:
TAttibThe custom attribute of the enum member.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type . When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
Exceptions See Also