Net.Bluewalk.DotNetUtils/StringEnum.cs
/// <summary>
/// Gets the string value associated with the given enum value.
/// </summary>
/// <param name="valueName">Name of the enum value.</param>
/// <returns>String Value</returns>
Gets the string value associated with the given enum value.
Gets the string value associated with the given enum value .
public string GetStringValue(string valueName)
        {
            string stringValue = null;
            try
            {
                var enumType = (Enum) Enum.Parse(_enumType, valueName);
                stringValue = GetStringValue(enumType);
            }
            catch (Exception)
            {
            } 
            return stringValue;
        }
public string GetStringValue ( string valueName ) { string stringValue = null ; try { var enumType = ( Enum ) Enum . Parse ( _enumType , valueName ) ; stringValue = GetStringValue ( enumType ) ; } catch ( Exception ) { } return stringValue ; }
Gets the string value associated with the given enum value.
Gets the string value associated with the given enum value .
//Swallow!
None
valueName
string
Name of the enum value.
Name of the enum value .