Beispiel #1
0
 /// <summary>
 /// Searches a range of elements in the sorted list for an element using the
 /// specified comparer and returns the zero-based index of the element.
 /// </summary>
 public static void BinarySearch(SystemGenerics.List <T> list, int index, int count, T item, SystemGenerics.IComparer <T> comparer)
 {
     (list as Mock)?.CheckDataRace(false);
     list.BinarySearch(index, count, item, comparer);
 }
Beispiel #2
0
 /// <summary>
 /// Searches the entire sorted list for an element using the default
 /// comparer and returns the zero-based index of the element.
 /// </summary>
 public static void BinarySearch(SystemGenerics.List <T> list, T item)
 {
     (list as Mock)?.CheckDataRace(false);
     list.BinarySearch(item);
 }