ArrayList.BinarySearch Method

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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

Namespace:   System.Collections
Assembly:  mscorlib (in mscorlib.dll)

NameDescription
System_CAPS_pubmethodBinarySearch(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.

System_CAPS_pubmethodBinarySearch(Object)

Searches the entire sorted ArrayList for an element using the default comparer and returns the zero-based index of the element.

System_CAPS_pubmethodBinarySearch(Object, IComparer)

Searches the entire sorted ArrayList for an element using the specified comparer and returns the zero-based index of the element.

Return to top
Show: