DataArrayTBinarySearch Method |
Searches the entire sorted list for the specified value using the specified comparer.
Namespace:
Demo3D.PLC.Comms
Assembly:
PLC (in PLC.dll) Version: 15.0.2.11458
Syntaxpublic int BinarySearch(
T value,
IComparer<T> comparer
)
Parameters
- value
- Type: T
The value to search for. - comparer
- Type: System.Collections.GenericIComparerT
The element comparer.
Return Value
Type:
Int32The zero-based index of item in the sorted list, 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.
See Also