/// <summary> /// Sorts the elements in the entire list using the specified comparer. /// </summary> public static void Sort(SystemGenerics.List <T> list, SystemGenerics.IComparer <T> comparer) { (list as Mock)?.CheckDataRace(true); list.Sort(comparer); }
/// <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); }