Пример #1
0
 /// <summary>
 /// Equalses the specified other.
 /// </summary>
 /// <param name="other">The other.</param>
 /// <returns></returns>
 public bool Equals(ItemWithValue <TObject, TValue> other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(EqualityComparer <TObject> .Default.Equals(Item, other.Item));
 }
Пример #2
0
 /// <inheritdoc />
 public bool Equals(ItemWithValue <TObject, TValue> other)
 {
     return(EqualityComparer <TObject> .Default.Equals(Item, other.Item) && EqualityComparer <TValue> .Default.Equals(Value, other.Value));
 }