APRlib

SupportClass.CollectionsManager.BinarySearch Method (ICollection, Object, IComparer)

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

public static int BinarySearch(
   ICollection List,
   object Key,
   IComparer Comparator
);

Parameters

List
IList in which one goes away has to make the binary search.
Key
The Object to locate.
Comparator
The IComparer implementation to use when comparing elements.

Return Value

See Also

SupportClass.CollectionsManager Class | (global) Namespace | SupportClass.CollectionsManager.BinarySearch Overload List