List<T>::BinarySearch Method
Uses a binary search algorithm to locate a specific element in the sorted List<T> or a portion of it.
Assembly: mscorlib (in mscorlib.dll)
| Name | Description | |
|---|---|---|
![]() | BinarySearch(T) | Searches the entire sorted List<T> for an element using the default comparer and returns the zero-based index of the element. |
![]() | BinarySearch(T, IComparer<T>^) | Searches the entire sorted List<T> for an element using the specified comparer and returns the zero-based index of the element. |
![]() | BinarySearch(Int32, Int32, T, IComparer<T>^) | Searches a range of elements in the sorted List<T> for an element using the specified comparer and returns the zero-based index of the element. |
