Пример #1
0
        public static int Compare(IMyComparer <Student> comparer)
        {
            var s1 = new Student("John");
            var s2 = new Student("Peter");

            return(comparer.Compare(s1, s2));
        }
Пример #2
0
 public ComparerAdapter(IMyComparer <T> innerComparer)
 {
     _innerComparer = innerComparer;
 }
Пример #3
0
 public MySortedDictionary(IMyComparer <TKey> comparer)
 {
     _comparer = comparer;
 }