Exemple #1
0
 public static void MergeSortWithCompareRules <T>(IList <T> list, IList <Comparison <T> > compareRules)
 {
     MergeSort(list, (a, b) => CompareUtil.CompareWithRules(a, b, compareRules) < 0);
 }
Exemple #2
0
 private int CompareWithRules(T data1, T data2)
 {
     return(CompareUtil.CompareWithRules(data1, data2, this.compareRules));
 }
Exemple #3
0
 public static void BubbleSortWithCompareRules(IList list, IList <Comparison <object> > compareRules)
 {
     BubbleSort(list, (a, b) => CompareUtil.CompareWithRules(a, b, compareRules) < 0);
 }