3 writes to comparer
System.Collections (3)
System\Collections\Generic\SortedSet.cs (3)
73comparer = Comparer<T>.Default; 78this.comparer = comparer ?? Comparer<T>.Default; 1560comparer = (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); 695int order = comparer.Compare(item, current.Item); 727int order = comparer.Compare(item, current.Item); 747if (lowerBoundActive && comparer.Compare(from, current.Item) > 0) 753if (upperBoundActive && comparer.Compare(to, current.Item) < 0) 855SortedSet<T> dummy = new SortedSet<T>(asSorted, comparer); 1083if (comparer.Compare(asSorted.Max, Min) >= 0 && comparer.Compare(asSorted.Min, Max) <= 0) 1089if (comparer.Compare(item, min) < 0) 1091if (comparer.Compare(item, max) > 0) 1159while (i < count && i != 0 && comparer.Compare(other[i], previous) == 0) 1327if (asSorted != null && HasEqualComparer(asSorted) && (comparer.Compare(Min, asSorted.Max) > 0 || comparer.Compare(Max, asSorted.Min) < 0)) 1535info.AddValue(ComparerName, comparer, typeof(IComparer<T>)); 1550if (comparer != null)