|
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
Syntax public static string GetDescription<T>(
this T source
)
<ExtensionAttribute>
Public Shared Function GetDescription(Of T) (
source As T
) As String
Request Example
View SourceParameters
- source
- Type: T
The enumeration value.
Type Parameters
- T
- The enumeration type.
Return Value
Type:
StringThe 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