BigList<(Of <(<'T>)>)>..::..BinarySearch Method (T, Comparison<(Of <(<'T>)>)>)
Searches a sorted list for an item via binary search. The list must be sorted
by the ordering defined by the passed Comparison<T> delegate; otherwise,
incorrect results will be returned.
Namespace:
Wintellect.PowerCollections
Assembly:
PowerCollections (in PowerCollections.dll)
Syntax
public int BinarySearch( T item, Comparison<T> comparison )
Public Function BinarySearch ( _ item As T, _ comparison As Comparison(Of T) _ ) As Integer
public: int^ BinarySearch( T item, Comparison<T>^ comparison )
Parameters
- item
- Type: T
The item to search for.
- comparison
- Type: Comparison<(Of <(<'T>)>)>
The comparison delegate used to sort the list.