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