public static int Compare(IMyComparer <Student> comparer) { var s1 = new Student("John"); var s2 = new Student("Peter"); return(comparer.Compare(s1, s2)); }
public ComparerAdapter(IMyComparer <T> innerComparer) { _innerComparer = innerComparer; }
public MySortedDictionary(IMyComparer <TKey> comparer) { _comparer = comparer; }