VelocityDbListTBinarySearch Method |
Assuming list elements are sorted by default sort order, finds the position of a an element or position where it would belong
Namespace:
VelocityDb.Collection
Assembly:
VelocityDb (in VelocityDb.dll) Version: 11.1.0.0 (11.1)
Syntax public int BinarySearch(
T aKey,
out bool isEqual
)
Public Function BinarySearch (
aKey As T,
<OutAttribute> ByRef isEqual As Boolean
) As Integer
public:
int BinarySearch(
T aKey,
[OutAttribute] bool% isEqual
)
member BinarySearch :
aKey : 'T *
isEqual : bool byref -> int
Parameters
- aKey
- Type: T
Element to look for - isEqual
- Type: SystemBoolean
true if match found; otherwise false
Return Value
Type:
Int32Index position
See Also