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)
73NonRandomizedStringEqualityComparer.GetStringComparer(_comparer!) is IEqualityComparer<string> stringComparer) 135if (source._comparer == _comparer) 199Debug.Assert(_comparer is not null, "The comparer should never be null for a reference type."); 200return (IEqualityComparer<TKey>)IInternalStringEqualityComparer.GetUnderlyingEqualityComparer((IEqualityComparer<string?>)_comparer); 204return _comparer ?? EqualityComparer<TKey>.Default; 408IEqualityComparer<TKey>? comparer = _comparer; 524IEqualityComparer<TKey>? comparer = _comparer; 731return dictionary._comparer is IAlternateEqualityComparer<TAlternateKey, TKey>; 739return Unsafe.As<IAlternateEqualityComparer<TAlternateKey, TKey>>(dictionary._comparer);