6 references to BinarySearch
System.Collections.Immutable (6)
System\Collections\Immutable\ImmutableList_1.Builder.cs (1)
1000
return this.Root.
BinarySearch
(index, count, item, comparer);
System\Collections\Immutable\ImmutableList_1.cs (1)
124
public int BinarySearch(int index, int count, T item, IComparer<T>? comparer) => _root.
BinarySearch
(index, count, item, comparer);
System\Collections\Immutable\ImmutableList_1.Node.cs (4)
666
return _left.
BinarySearch
(index, count, item, comparer);
670
int result = _right!.
BinarySearch
(index - thisNodeIndex - 1, count, item, comparer);
687
int result = adjustedCount < 0 ? -1 : _right!.
BinarySearch
(0, adjustedCount, item, comparer);
699
int result = _left.
BinarySearch
(index, count, item, comparer);