Export (0) Print
Expand All

List.BinarySearch Method

Uses a binary search algorithm to locate a specific element in the sorted List or a portion of it.

Name Description
List.BinarySearch (T) Searches the entire sorted List for an element using the default comparer and returns the zero-based index of the element.

Supported by the .NET Compact Framework.

List.BinarySearch (T, Generic IComparer) Searches the entire sorted List for an element using the specified comparer and returns the zero-based index of the element.

Supported by the .NET Compact Framework.

List.BinarySearch (Int32, Int32, T, Generic IComparer) 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.

Supported by the .NET Compact Framework.

Community Additions

ADD
Show:
© 2014 Microsoft