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; 1212_comparer = (IEqualityComparer<TKey>)siInfo.GetValue(ComparerName, typeof(IEqualityComparer<TKey>))!; // When serialized if comparer is null, we use the default. 1262IEqualityComparer<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; 524IEqualityComparer<TKey>? comparer = _comparer; 731return dictionary._comparer is IAlternateEqualityComparer<TAlternateKey, TKey>; 739return Unsafe.As<IAlternateEqualityComparer<TAlternateKey, TKey>>(dictionary._comparer); 1089IEqualityComparer<TKey>? comparer = dictionary._comparer; 1261Debug.Assert(_comparer is NonRandomizedStringEqualityComparer); 1262IEqualityComparer<TKey> comparer = _comparer = (IEqualityComparer<TKey>)((NonRandomizedStringEqualityComparer)_comparer).GetRandomizedEqualityComparer(); 1307IEqualityComparer<TKey>? comparer = _comparer; 1380IEqualityComparer<TKey>? comparer = _comparer;