3 writes to _comparer
System.Private.CoreLib (3)
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\Dictionary.cs (3)
67
_comparer
= comparer ?? EqualityComparer<TKey>.Default;
75
_comparer
= (IEqualityComparer<TKey>)stringComparer;
81
_comparer
= comparer;
10 references to _comparer
System.Private.CoreLib (10)
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\Dictionary.cs (10)
73
NonRandomizedStringEqualityComparer.GetStringComparer(
_comparer
!) is IEqualityComparer<string> stringComparer)
135
if (source.
_comparer
==
_comparer
)
199
Debug.Assert(
_comparer
is not null, "The comparer should never be null for a reference type.");
200
return (IEqualityComparer<TKey>)IInternalStringEqualityComparer.GetUnderlyingEqualityComparer((IEqualityComparer<string?>)
_comparer
);
204
return
_comparer
?? EqualityComparer<TKey>.Default;
408
IEqualityComparer<TKey>? comparer =
_comparer
;
524
IEqualityComparer<TKey>? comparer =
_comparer
;
731
return dictionary.
_comparer
is IAlternateEqualityComparer<TAlternateKey, TKey>;
739
return Unsafe.As<IAlternateEqualityComparer<TAlternateKey, TKey>>(dictionary.
_comparer
);