Click or drag to resize
Accord.NET (logo)

ExtensionMethodsGetDescriptionT Method

Gets a the value of a DescriptionAttribute associated with a particular enumeration value.

Namespace:  Accord
Assembly:  Accord (in Accord.dll) Version: 3.8.0
public static string GetDescription<T>(
	this T source
Request Example View Source


Type: T
The enumeration value.

Type Parameters

The enumeration type.

Return Value

Type: String
The string value stored in the value's description attribute.

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