25 references to Comparer
System.Collections (24)
System\Collections\Generic\SortedDictionary.cs (2)
38sortedDictionary._set.Comparer is KeyValuePairComparer kv && 149return ((KeyValuePairComparer)_set.Comparer).keyComparer;
System\Collections\Generic\SortedSet.cs (10)
839return Comparer == other.Comparer || Comparer.Equals(other.Comparer); 876int comp = Comparer.Compare(mine.Current, theirs.Current); 1015while (!mineEnded && !theirsEnded && Comparer.Compare(theirs.Current, max) <= 0) 1017int comp = Comparer.Compare(mine.Current, theirs.Current); 1132Array.Sort(elements, 0, length, Comparer); 1304if (Comparer.Compare(mine.Current, theirs.Current) != 0) 1513if (Comparer.Compare(lowerValue, upperValue) > 0)
System\Collections\Generic\SortedSet.TreeSubSet.cs (12)
39: base(Underlying.Comparer) 114int comp = _lBoundActive ? Comparer.Compare(_min, item) : -1; 120comp = _uBoundActive ? Comparer.Compare(_max, item) : 1; 135int comp = _lBoundActive ? Comparer.Compare(_min, current.Item) : -1; 165int comp = _uBoundActive ? Comparer.Compare(_max, current.Item) : 1; 205else if (_lBoundActive && Comparer.Compare(_min, current.Item) > 0) 231else if (_lBoundActive && Comparer.Compare(_min, node.Item) > 0) 264if (current.Left != null && (!_lBoundActive || Comparer.Compare(_min, current.Item) < 0)) 268if (current.Right != null && (!_uBoundActive || Comparer.Compare(_max, current.Item) > 0)) 298if (Comparer.Compare(item, i) == 0) 344if (_lBoundActive && Comparer.Compare(_min, lowerValue) > 0) 348if (_uBoundActive && Comparer.Compare(_max, upperValue) < 0)
System.Collections.Immutable (1)
System\Collections\Frozen\FrozenSetInternalBase.cs (1)
164SortedSet<T> sortedSet => _thisSet.Comparer.Equals(sortedSet.Comparer),