1 write to comparer
System.ObjectModel (1)
System\Collections\ObjectModel\KeyedCollection.cs (1)
40this.comparer = comparer ?? EqualityComparer<TKey>.Default;
7 references to comparer
System.ObjectModel (7)
System\Collections\ObjectModel\KeyedCollection.cs (7)
56public IEqualityComparer<TKey> Comparer => comparer; 83if (comparer.Equals(GetKeyForItem(item), key)) 104if (keyInItems != null && comparer.Equals(key, keyInItems)) 144if (comparer.Equals(GetKeyForItem(Items[i]), key)) 164if (!comparer.Equals(oldKey, newKey)) 213if (comparer.Equals(oldKey, newKey)) 260dict = new Dictionary<TKey, TItem>(comparer);