4 writes to _comparer
System.Collections (4)
System\Collections\Generic\OrderedDictionary.cs (4)
123_comparer = comparer ?? EqualityComparer<TKey>.Default; 129_comparer = (IEqualityComparer<TKey>)stringComparer; 136_comparer = comparer; 1105IEqualityComparer<TKey> comparer = _comparer = (IEqualityComparer<TKey>)((NonRandomizedStringEqualityComparer)_comparer).GetUnderlyingEqualityComparer();
11 references to _comparer
System.Collections (11)
System\Collections\Generic\OrderedDictionary.cs (11)
127NonRandomizedStringEqualityComparer.GetStringComparer(_comparer) is IEqualityComparer<string> stringComparer) 225IEqualityComparer<TKey>? comparer = _comparer; 625IEqualityComparer<TKey>? comparer = _comparer; 824if (typeof(TKey).IsValueType && _comparer is null) 834Debug.Assert(_comparer is not null); 835if (_comparer.Equals(key, e.Key)) 1065_comparer is NonRandomizedStringEqualityComparer) 1104Debug.Assert(_comparer is NonRandomizedStringEqualityComparer); 1105IEqualityComparer<TKey> comparer = _comparer = (IEqualityComparer<TKey>)((NonRandomizedStringEqualityComparer)_comparer).GetUnderlyingEqualityComparer(); 1106Debug.Assert(_comparer is not null); 1107Debug.Assert(_comparer is not NonRandomizedStringEqualityComparer);