List<(Of <(<'T>)>)>..::..BinarySearch Method (T)
Searches the entire sorted List<(Of <(<'T>)>)> for an element using the default comparer and returns the zero-based index of the element.
Namespace:
System.Collections.GenericAssembly: Bridge (in Bridge.dll)
Syntax
Parameters
- value
- Type: T
Return Value
The zero-based index of item in the sorted List<(Of <(<'T>)>)>, if item is found; otherwise, a negative number that is the bitwise complement of the index of the next element that is larger than item or, if there is no larger element, the bitwise complement of Count.Exceptions
Exception | Condition |
---|---|
System..::..InvalidOperationException | The default comparer Default cannot find an implementation of the IComparable<(Of <(<'T>)>)> generic interface or the IComparable interface for type T. |