/// <summary> /// Determines whether the specified object is equal to the current object. /// </summary> /// <param name="other">The object to compare with the current object.</param> /// <returns>true if the specified object is equal to the current object; otherwise, false.</returns> public bool Equals(ListDifferences <T> other) { return(other != null && New.SequenceEqual(other.New) && Updated.SequenceEqual(other.Updated) && Deleted.SequenceEqual(other.Deleted)); }
/// <summary> /// Determines whether the specified object is equal to the current object. /// </summary> /// <param name="obj">The object to compare with the current object.</param> /// <returns>true if the specified object is equal to the current object; otherwise, false.</returns> public override bool Equals(object obj) { if (ReferenceEquals(obj, null)) { return(false); } if (ReferenceEquals(this, obj)) { return(true); } ListDifferences <T> item = obj as ListDifferences <T>; if (item == null) { return(false); } return(Equals(item)); }