Gets the attribute.
This extension method is broken out so you can use a similar pattern with
other MetaData elements in the future. This is your base method for each.
Namespace:
Core
Assembly:
Core (in Core.dll)
public static T GetAttribute<T>(
Enum value
)
where T : Attribute
Type Parameters
- T
Parameters
- value
- Type: Enum
The value.
Return Value
T.