3 writes to comparer
System.Collections (3)
System\Collections\Generic\SortedSet.cs (3)
73
comparer
= Comparer<T>.Default;
78
this.
comparer
= comparer ?? Comparer<T>.Default;
1563
comparer
= (IComparer<T>)siInfo.GetValue(ComparerName, typeof(IComparer<T>))!;
20 references to comparer
System.Collections (20)
System\Collections\Generic\SortedSet.cs (20)
109
comparer = this.
comparer
;
154
if (!(
comparer
.Compare(item, min) < 0 ||
comparer
.Compare(item, max) > 0) && Contains(item))
275
public IComparer<T> Comparer =>
comparer
;
329
order =
comparer
.Compare(item, current.Item);
474
int order = foundMatch ? -1 :
comparer
.Compare(item, current.Item);
698
int order =
comparer
.Compare(item, current.Item);
730
int order =
comparer
.Compare(item, current.Item);
750
if (lowerBoundActive &&
comparer
.Compare(from, current.Item) > 0)
756
if (upperBoundActive &&
comparer
.Compare(to, current.Item) < 0)
858
SortedSet<T> dummy = new SortedSet<T>(asSorted,
comparer
);
1086
if (
comparer
.Compare(asSorted.Max, Min) >= 0 &&
comparer
.Compare(asSorted.Min, Max) <= 0)
1092
if (
comparer
.Compare(item, min) < 0)
1094
if (
comparer
.Compare(item, max) > 0)
1162
while (i < count && i != 0 &&
comparer
.Compare(other[i], previous) == 0)
1330
if (asSorted != null && HasEqualComparer(asSorted) && (
comparer
.Compare(Min, asSorted.Max) > 0 ||
comparer
.Compare(Max, asSorted.Min) < 0))
1538
info.AddValue(ComparerName,
comparer
, typeof(IComparer<T>));
1553
if (
comparer
!= null)