6 writes to comparer
System (6)
compmod\system\collections\generic\sortedset.cs (6)
94
this.
comparer
= Comparer<T>.Default;
100
this.
comparer
= Comparer<T>.Default;
102
this.
comparer
= comparer;
1763
comparer
= null;
2028
comparer
= (IComparer<T>)siInfo.GetValue(ComparerName, typeof(IComparer<T>));
2105
comparer
= (IComparer<T>)siInfo.GetValue(ComparerName, typeof(IComparer<T>));
20 references to comparer
System (20)
compmod\system\collections\generic\sortedset.cs (20)
166
els.Sort(this.
comparer
);
200
if (!(
comparer
.Compare(item, min) < 0 ||
comparer
.Compare(item, max) > 0) && this.Contains(item))
300
return
comparer
;
382
order =
comparer
.Compare(item, current.Item);
537
int order = foundMatch ? -1 :
comparer
.Compare(item, current.Item);
784
int order =
comparer
.Compare(item, current.Item);
802
int order =
comparer
.Compare(item, current.Item);
821
if (lowerBoundActive &&
comparer
.Compare(from, current.Item) > 0) {
824
if (upperBoundActive &&
comparer
.Compare(to, current.Item) < 0) {
997
SortedSet<T> dummy = new SortedSet<T>(s, this.
comparer
);
1215
if (!(
comparer
.Compare(asSorted.Max, this.Min) < 0 ||
comparer
.Compare(asSorted.Min, this.Max) > 0)) {
1219
if (
comparer
.Compare(item, min) < 0)
1221
if (
comparer
.Compare(item, max) > 0)
1297
while (i < other.Length && i != 0 &&
comparer
.Compare(other[i], last) == 0)
1534
if (asSorted != null && AreComparersEqual(this, asSorted) && (
comparer
.Compare(Min, asSorted.Max) > 0 ||
comparer
.Compare(Max, asSorted.Min) < 0)) {
2082
info.AddValue(ComparerName,
comparer
, typeof(IComparer<T>));
2097
if (
comparer
!= null) {