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
 /// <inheritdoc />
 public bool Equals(ExpirableItem <TObject, TKey> other)
 {
     return(EqualityComparer <TKey> .Default.Equals(Key, other.Key) && ExpireAt.Equals(other.ExpireAt));
 }