1 write to Comparer
System.Collections.Immutable (1)
System\Collections\Frozen\FrozenDictionary.cs (1)
314private protected FrozenDictionary(IEqualityComparer<TKey> comparer) => Comparer = comparer;
12 references to Comparer
System.Collections.Immutable (12)
System\Collections\Frozen\DefaultFrozenDictionary.cs (1)
23IEqualityComparer<TKey> comparer = Comparer;
System\Collections\Frozen\FrozenDictionary.AlternateLookup.cs (5)
53if (Comparer is IAlternateEqualityComparer<TAlternateKey, TKey> && 64/// <summary>Gets the <see cref="Comparer"/> as an <see cref="IAlternateEqualityComparer{TAlternate, T}"/>.</summary> 68Debug.Assert(Comparer is IAlternateEqualityComparer<TAlternateKey, TKey>, "Must have already been verified"); 69return Unsafe.As<IAlternateEqualityComparer<TAlternateKey, TKey>>(Comparer); 85Debug.Assert(dictionary.Comparer is IAlternateEqualityComparer<TAlternateKey, TKey>);
System\Collections\Frozen\FrozenDictionary.cs (4)
49return ReferenceEquals(comparer, FrozenDictionary<TKey, TValue>.Empty.Comparer) ? 123if (source is FrozenDictionary<TKey, TValue> fd && fd.Comparer.Equals(comparer)) 146return ReferenceEquals(comparer, FrozenDictionary<TKey, TValue>.Empty.Comparer) ? 313/// <param name="comparer">The comparer to use and to expose from <see cref="Comparer"/>.</param>
System\Collections\Frozen\KeysAndValuesFrozenDictionary.cs (1)
32hashCodes[i] = Comparer.GetHashCode(entries[i].Key);
System\Collections\Frozen\SmallFrozenDictionary.cs (1)
39IEqualityComparer<TKey> comparer = Comparer;