DataArrayTBinarySearch Method |
Searches the entire sorted list for the specified value using the specified comparer.
Namespace: Demo3D.PLC.CommsAssembly: PLC (in PLC.dll) Version: 19.00.00
Syntaxpublic int BinarySearch(
T value,
IComparer<T> comparer
)
Parameters
- value T
- The value to search for.
- comparer IComparerT
- The element comparer.
Return Value
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