6 references to BinarySearch
System.Collections.Immutable (6)
System\Collections\Immutable\ImmutableList_1.Builder.cs (1)
1000return this.Root.BinarySearch(index, count, item, comparer);
System\Collections\Immutable\ImmutableList_1.cs (1)
122public 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)
666return _left.BinarySearch(index, count, item, comparer); 670int result = _right!.BinarySearch(index - thisNodeIndex - 1, count, item, comparer); 687int result = adjustedCount < 0 ? -1 : _right!.BinarySearch(0, adjustedCount, item, comparer); 699int result = _left.BinarySearch(index, count, item, comparer);