public static class EnumerationTools
{
public static string ConvertEnumtoDisplayString(System.Type enumObj, int value)
{
string returnVal;
switch (enumObj.BaseType)
{
case EnumTypeHere:
switch (value)
{
case 0:
returnVal = "Some Value";
case 1:
returnVal = "Some Value";
case 2:
returnVal = "Some Value";
}
case EnumTypeHere:
switch (value)
{
case 0:
returnVal = "Some Value";
case 1:
returnVal = "Some Value";
case 2:
returnVal = "Some Value";
}
}
return returnVal;
}
}
|