public bool Equals(ExpirableItem <TObject> other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return(EqualityComparer <TObject> .Default.Equals(Item, other.Item) && ExpireAt.Equals(other.ExpireAt) && Index == other.Index); }
public bool Equals(ExpirableItem <TObject, TKey> other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return(EqualityComparer <TKey> .Default.Equals(Key, other.Key) && ExpireAt.Equals(other.ExpireAt)); }
/// <inheritdoc /> public bool Equals(ExpirableItem <TObject, TKey> other) { return(EqualityComparer <TKey> .Default.Equals(Key, other.Key) && ExpireAt.Equals(other.ExpireAt)); }