Beispiel #1
0
 public static int BinarySearch <TSource, TValue>(this IList <TSource> source, int index, int length, Func <TSource, TValue> map, TValue value, IComparer <TValue> comparer)
 {
     return(Colls.BinarySearch(source, index, length, map, value, comparer));
 }
Beispiel #2
0
 public static int BinarySearch <T>(this IList <T> source, int index, int length, T value, IComparer <T> comparer)
 {
     return(Colls.BinarySearch(source, index, length, t => t, value, comparer));
 }
Beispiel #3
0
 public static int BinarySearch <TSource, TValue>(this IList <TSource> source, Func <TSource, TValue> map, TValue value, IComparer <TValue> comparer)
 {
     return(Colls.BinarySearch(source, 0, source.Count, map, value, comparer));
 }
Beispiel #4
0
 public static int BinarySearch <T>(this IList <T> source, T value, IComparer <T> comparer)
 {
     return(Colls.BinarySearch(source, 0, source.Count, t => t, value, comparer));
 }
Beispiel #5
0
 public static int BinarySearch <TSource, TValue>(this IList <TSource> source, Func <TSource, TValue> map, TValue value)
 {
     return(Colls.BinarySearch(source, map, value, Comparer <TValue> .Default));
 }
Beispiel #6
0
 public static int BinarySearch <T>(this IList <T> source, T value)
 {
     return(Colls.BinarySearch(source, t => t, value));
 }