Net.Bluewalk.DotNetUtils/StringEnum.cs
/// <summary>
/// Gets the string values associated with the enum.
/// </summary>
/// <returns>String value array</returns>
Gets the string values associated with the enum.
Gets the string values associated with the enum .
public Array GetStringValues()
        {
            var values = new ArrayList();
            foreach (var fi in _enumType.GetFields())
            {
                var attrs = fi.GetCustomAttributes(typeof(StringValueAttribute), false) as StringValueAttribute[];
                if (attrs.Length > 0)
                    values.Add(attrs[0].Value);
            }
            return values.ToArray();
        }
public Array GetStringValues ( ) { var values = new ArrayList ( ) ; foreach ( var fi in _enumType . GetFields ( ) ) { var attrs = fi . GetCustomAttributes ( typeof ( StringValueAttribute ) , false ) as StringValueAttribute [ ] ; if ( attrs . Length > 0 ) values . Add ( attrs [ 0 ] . Value ) ; } return values . ToArray ( ) ; }
Gets the string values associated with the enum.
Gets the string values associated with the enum .
//Look for our string value associated with fields in this enum //Check for our custom attribute
String value array
String value array