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")
80 Console.WriteLine ("Value: " + e.ToString ());
81 Console.WriteLine ("Enum emission test okay");