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; 1213_comparer = (IEqualityComparer<TKey>)siInfo.GetValue(ComparerName, typeof(IEqualityComparer<TKey>))!; // When serialized if comparer is null, we use the default. 1263IEqualityComparer<TKey> comparer = _comparer = (IEqualityComparer<TKey>)((NonRandomizedStringEqualityComparer)_comparer).GetRandomizedEqualityComparer();
15 references to _comparer
System.Private.CoreLib (15)
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\Dictionary.cs (15)
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; 525IEqualityComparer<TKey>? comparer = _comparer; 732return dictionary._comparer is IAlternateEqualityComparer<TAlternateKey, TKey>; 740return Unsafe.As<IAlternateEqualityComparer<TAlternateKey, TKey>>(dictionary._comparer); 1090IEqualityComparer<TKey>? comparer = dictionary._comparer; 1262Debug.Assert(_comparer is NonRandomizedStringEqualityComparer); 1263IEqualityComparer<TKey> comparer = _comparer = (IEqualityComparer<TKey>)((NonRandomizedStringEqualityComparer)_comparer).GetRandomizedEqualityComparer(); 1308IEqualityComparer<TKey>? comparer = _comparer; 1381IEqualityComparer<TKey>? comparer = _comparer;