12 public override string ToString ()
14 return String.Format ("X ({0})", x);
17 public static X operator & (X a, X b)
19 return new X (a.x * b.x);
22 public static X operator | (X a, X b)
24 return new X (a.x + b.x);
27 // Returns true if the value is odd.
28 public static bool operator true (X x)
30 return (x.x % 2) != 0;
33 // Returns true if the value is even.
34 public static bool operator false (X x)
36 return (x.x % 2) == 0;
39 public static int Test ()
49 // Console.WriteLine ("TEST: {0} {1} {2} {3} {4} {5}", x, y, t1, t2, t3, t4);
63 public static int Main ()
66 Console.WriteLine ("RESULT: {0}", result);