NDoc 1.3.1 SDK

EnumDescriptionConverter.GetEnumValue Method 

Gets the value of an Enum, based on it's Description Attribute or named value

[Visual Basic]
Shared Public Function GetEnumValue( _ 
   ByVal value As Type, _ 
   ByVal description As String _ 
) As Object
[C#]
public static object GetEnumValue(
   Type value,
   string description
);
[C++]
public: static Object* GetEnumValue(
   Type* value,
   String* description
);
[JScript]
public static function GetEnumValue(
   Type value,
   String description
): Object;

Parameters

value
The Enum type
description
The description or name of the element

Return Value

The value, or the passed in description, if it was not found

See Also

EnumDescriptionConverter Class | NDoc.Core.PropertyGridUI Namespace