C# Class Nimrod.EnumExtensions

Show file Open project: resgroup/nimrod

Public Methods

Method Description
GetDescription ( object value ) : string

Returns the description of the enum if it exists, otherwise returns the name of the enum value. http://stackoverflow.com/questions/1799370/getting-attributes-of-enums-value

Method Details

GetDescription() public static method

Returns the description of the enum if it exists, otherwise returns the name of the enum value. http://stackoverflow.com/questions/1799370/getting-attributes-of-enums-value
public static GetDescription ( object value ) : string
value object
return string