Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

ArrayList.BinarySearch Method

Uses a binary search algorithm to locate a specific element in the sorted ArrayList 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
Public method BinarySearch(Object) Searches the entire sorted ArrayList for an element using the default comparer and returns the zero-based index of the element.
Public method BinarySearch(Object, IComparer) Searches the entire sorted ArrayList for an element using the specified comparer and returns the zero-based index of the element.
Public method BinarySearch(Int32, Int32, Object, IComparer) Searches a range of elements in the sorted ArrayList for an element using the specified comparer and returns the zero-based index of the element.
Top
Show:
© 2014 Microsoft. All rights reserved.