User-defined enumeration does not work
Hi
I cannot get enum to work in LinqPad
If I try the following code snippet in LinqPad (4.42.04 Premium), it reports an error "} expected".
enum RobotLights { Green, Yellow, Red };
RobotLights robot = RobotLights.Green;
Console.WriteLine(robot);
I am missing something. Can someone please give me some advice?
Daniel
I cannot get enum to work in LinqPad
If I try the following code snippet in LinqPad (4.42.04 Premium), it reports an error "} expected".
enum RobotLights { Green, Yellow, Red };
RobotLights robot = RobotLights.Green;
Console.WriteLine(robot);
I am missing something. Can someone please give me some advice?
Daniel
Comments