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