Skip to content

M_WolfCurses_AttributeExtensions_GetEnumAttribute__1

Maxwolf edited this page Jan 2, 2016 · 1 revision

AttributeExtensions.GetEnumAttribute(T) Method

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)

Syntax

C#

public static T GetEnumAttribute<T>(
	this Enum enumValue
)
where T : Attribute

Parameters

 

enumValue
Type: System.Enum
The enum Value.

Type Parameters

 

T
[Missing documentation for "M:WolfCurses.AttributeExtensions.GetEnumAttribute``1(System.Enum)"]

Return Value

Type: T
The [!:T].

Usage Note

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).

Version Information

Wolf Curses

Supported in: 0.1

See Also

Reference

AttributeExtensions Class
WolfCurses Namespace

Clone this wiki locally