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