add ISafeSerializationData
[mcs.git] / tests / gtest-114.cs
blob49b0026cc25664e2fb92a7b44be8e4dd640037df
1 using System;
2 using System.Collections.Generic;
4 public class NaturalComparer<T> : IComparer<T>
5 where T: IComparable<T>
7 public int Compare (T a, T b)
9 return a.CompareTo (b);
13 public class X
15 class Test : IComparable<Test>
17 public int CompareTo (Test that)
19 return 0;
22 public bool Equals (Test that)
24 return false;
28 static void Main ()
30 IComparer<Test> cmp = new NaturalComparer<Test> ();
31 Test a = new Test ();
32 Test b = new Test ();
33 cmp.Compare (a, b);