5 writes to _comparer
System.Private.CoreLib (5)
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\Dictionary.cs (5)
67_comparer = comparer ?? EqualityComparer<TKey>.Default; 75_comparer = (IEqualityComparer<TKey>)stringComparer; 81_comparer = comparer; 818_comparer = (IEqualityComparer<TKey>)siInfo.GetValue(ComparerName, typeof(IEqualityComparer<TKey>))!; // When serialized if comparer is null, we use the default. 868IEqualityComparer<TKey> comparer = _comparer = (IEqualityComparer<TKey>)((NonRandomizedStringEqualityComparer)_comparer).GetRandomizedEqualityComparer();
13 references to _comparer
System.Private.CoreLib (13)
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\Dictionary.cs (13)
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; 526IEqualityComparer<TKey>? comparer = _comparer; 681IEqualityComparer<TKey>? comparer = dictionary._comparer; 867Debug.Assert(_comparer is NonRandomizedStringEqualityComparer); 868IEqualityComparer<TKey> comparer = _comparer = (IEqualityComparer<TKey>)((NonRandomizedStringEqualityComparer)_comparer).GetRandomizedEqualityComparer(); 913IEqualityComparer<TKey>? comparer = _comparer; 986IEqualityComparer<TKey>? comparer = _comparer;