I searched around, everyone else who had this problem was using the .ToString method and I am not so I am at a loss.
On the last line I get a return of "A Constant Value is expected"
I know if I remove the part where I give the enum's values it works, but that kinda defeats the purpose of me using an Enum. Any suggestions about the best way to accomplish this?
public enum Colors
{
Blue = "0000FF",
Red = "FF0000",
Green= "00FF00"
}
private void colorstuff(Colors Color){
switch (Color ){
case Colors.Blue:
}
}
**EDIT So I have been made aware that ENUM's cannot have a STRING type. Can anyone suggest a method for making a SET of String Types? If I just declare
const Blue = "0000FF",
const Red = "FF0000",
const Green= "00FF00"
They are not attached to one another.