/// <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)); }
/// <inheritdoc /> public bool Equals(ItemWithValue <TObject, TValue> other) { return(EqualityComparer <TObject> .Default.Equals(Item, other.Item) && EqualityComparer <TValue> .Default.Equals(Value, other.Value)); }