A
avivgur
Hi,
Suppose I have an enum declared as:
enum Color {Red, DarkRed, Blue, DarkBlue}
Color c = Color.DarkBlue;
And I want the command "Console.WriteLine(c);" to print out "Dark
Blue" instead of "DarkBlue". In effect, I should probably change the
ToString() method that the enum uses to implement space insertion
between words. The question is, how do I do this?
Thanks,
Aviv.
Suppose I have an enum declared as:
enum Color {Red, DarkRed, Blue, DarkBlue}
Color c = Color.DarkBlue;
And I want the command "Console.WriteLine(c);" to print out "Dark
Blue" instead of "DarkBlue". In effect, I should probably change the
ToString() method that the enum uses to implement space insertion
between words. The question is, how do I do this?
Thanks,
Aviv.