1 // CS0216: The operator `MyType.operator >(MyType, MyType)' requires a matching operator `<' to also be defined
8 public MyType (int value)
13 public static bool operator == (MyType a
, MyType b
)
15 return a
.value == b
.value;
18 public static bool operator != (MyType a
, MyType b
)
20 return a
.value != b
.value;
23 public static bool operator > (MyType a
, MyType b
)
25 return a
.value > b
.value;
28 public static bool operator >= (MyType a
, MyType b
)
30 return a
.value >= b
.value;
33 public override string ToString ()
35 return value.ToString ();