12 public enum MyEnum : byte {
25 enum AA : byte { a, b }
26 enum BB : ulong { x, y }
28 const int myconstant = 30;
30 enum Compute { two = AA.b + B.y }
32 public static int Main ()
34 byte b = (byte) MyEnum.Foo;
36 Console.WriteLine ("Foo has a value of " + b);
44 int l = (int) AA.b + 1;
46 if ((int) Compute.two != 2)
77 if (e.ToString () != "d")
81 // Test "U operator (E x, E x)"
83 // Notice that the Microsoft C# compiler wont compile the following
84 // code, that is a bug in their compiler, see section 14.7.5 of the
93 Console.WriteLine ("Value: " + e.ToString ());
94 Console.WriteLine ("Enum emission test okay");