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