.NET Framework Class Library
List<(Of <(T>)>)..::.BinarySearch Method

Uses a binary search algorithm to locate a specific element in the sorted List<(Of <(T>)>) or a portion of it.

Overload List

  NameDescription
Public methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkBinarySearch(T)Searches the entire sorted List<(Of <(T>)>) for an element using the default comparer and returns the zero-based index of the element.
Public methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkBinarySearch(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.
Public methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkBinarySearch(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.
Top
See Also

Reference

Tags :


Page view tracker