/// <summary> /// Given a default color, produce a string of it that is parseable via Parse. /// </summary> /// <param name="id"></param> /// <returns></returns> public static string ToString(DefaultColor id) { return("$" + id.ToString()); }
/// <summary> /// Get the name of the enum as listed in the configuration file. /// </summary> /// <param name="defaultColor"></param> /// <returns></returns> public static string ConfigurationName(this DefaultColor defaultColor) { return(defaultColor.ToString() + "Color"); }