NDoc 1.3.1 SDK

EnumDescriptionConverter.GetEnumDescription Method (Enum)

Gets the Description of the given Enumeration value

[Visual Basic]
Shared  OverloadsPublic Function GetEnumDescription( _ 
   ByVal value As Enum _ 
) As String
[C#]
public static string GetEnumDescription(
   Enum value
);
[C++]
public: static String* GetEnumDescription(
   Enum* value
);
[JScript]
public static function GetEnumDescription(
   Enum value
): String;

Parameters

value
The enumeration value

Return Value

The Description from the DescriptionAttribute attached to the value, otherwise the enumeration value's name

See Also

EnumDescriptionConverter Class | NDoc.Core.PropertyGridUI Namespace | EnumDescriptionConverter.GetEnumDescription Overload List