M_WolfCurses_AttributeExtensions_GetEnumAttribute__1 - Maxwolf/WolfCurses GitHub Wiki
Extension method for enum's that helps with getting custom attributes off of enum values
Namespace: WolfCurses
Assembly: WolfCurses (in WolfCurses.dll) Version: 1.0.0.0 (1.0.0.0)
C#
public static T GetEnumAttribute<T>(
this Enum enumValue
)
where T : Attribute
- enumValue
- Type: System.Enum
The enum Value.
- T
- [Missing documentation for "M:WolfCurses.AttributeExtensions.GetEnumAttribute``1(System.Enum)"]
Type: T
The [!:T].
In Visual Basic and C#, you can call this method as an instance method on any object of type Enum. 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).
Supported in: 0.1