1 write to Comparer
System.Collections.Immutable (1)
System\Collections\Frozen\FrozenSet.cs (1)
248private protected FrozenSet(IEqualityComparer<T> comparer) => Comparer = comparer;
16 references to Comparer
System.Collections.Immutable (16)
System\Collections\Frozen\DefaultFrozenSet.cs (2)
20IEqualityComparer<T> comparer = Comparer; 47public IEqualityComparer<T> Comparer => _set.Comparer;
System\Collections\Frozen\FrozenSet.cs (4)
33return equalityComparer is null || ReferenceEquals(equalityComparer, FrozenSet<T>.Empty.Comparer) ? 68if (source is FrozenSet<T> fs && fs.Comparer.Equals(comparer)) 85return ReferenceEquals(comparer, FrozenSet<T>.Empty.Comparer) ? 247/// <param name="comparer">The comparer to use and to expose from <see cref="Comparer"/>.</param>
System\Collections\Frozen\FrozenSetInternalBase.cs (1)
167FrozenSet<T> fs => _thisSet.Comparer.Equals(fs.Comparer),
System\Collections\Frozen\Int32\Int32FrozenSet.cs (1)
67public IEqualityComparer<int> Comparer => _set.Comparer;
System\Collections\Frozen\ItemsFrozenSet.cs (1)
30hashCodes[i] = entries[i] is T t ? Comparer.GetHashCode(t) : 0;
System\Collections\Frozen\SmallFrozenSet.cs (2)
32if (Comparer.Equals(item, items[i])) 49public IEqualityComparer<T> Comparer => _set.Comparer;
System\Collections\Frozen\SmallValueTypeComparableFrozenSet.cs (1)
71public IEqualityComparer<T> Comparer => _set.Comparer;
System\Collections\Frozen\SmallValueTypeDefaultComparerFrozenSet.cs (1)
51public IEqualityComparer<T> Comparer => _set.Comparer;
System\Collections\Frozen\String\LengthBucketsFrozenSet.cs (1)
115public IEqualityComparer<string> Comparer => _set.Comparer;
System\Collections\Frozen\String\OrdinalStringFrozenSet.cs (1)
117public IEqualityComparer<string> Comparer => _set.Comparer;
System\Collections\Frozen\ValueTypeDefaultComparerFrozenSet.cs (1)
47public IEqualityComparer<T> Comparer => _set.Comparer;