Exemplo n.º 1
0
 /// <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());
 }
Exemplo n.º 2
0
 /// <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");
 }