Ejemplo n.º 1
0
 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));
 }
Ejemplo n.º 2
0
 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);
 }