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