private bool Equals(IndexedItem <TObject, TKey> other) { return(EqualityComparer <TKey> .Default.Equals(Key, other.Key) && EqualityComparer <TObject> .Default.Equals(Value, other.Value) && Index == other.Index); }