List(Of T).BinarySearch Method
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Uses a binary search algorithm to locate a specific element in the sorted List(Of T) or a portion of it.
This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.
| Name | Description | |
|---|---|---|
|
BinarySearch(T) | Searches the entire sorted List(Of T) for an element using the default comparer and returns the zero-based index of the element. |
|
BinarySearch(T, IComparer(Of T)) | Searches the entire sorted List(Of T) for an element using the specified comparer and returns the zero-based index of the element. |
|
BinarySearch(Int32, Int32, T, IComparer(Of T)) | Searches a range of elements in the sorted List(Of T) for an element using the specified comparer and returns the zero-based index of the element. |
Show: