/// <summary> /// Returns true if PartnerOrder instances are equal /// </summary> /// <param name="other">Instance of PartnerOrder to be compared</param> /// <returns>Boolean</returns> public bool Equals(PartnerOrder other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( OrderSummary == other.OrderSummary || OrderSummary != null && OrderSummary.Equals(other.OrderSummary) ) && ( Membership == other.Membership || Membership != null && Membership.Equals(other.Membership) ) && ( LineItems == other.LineItems || LineItems != null && LineItems.SequenceEqual(other.LineItems) ) && ( Addresses == other.Addresses || Addresses != null && Addresses.SequenceEqual(other.Addresses) )); }
public bool Equals(FinancialResultCategory other) { if (other == null) { return(false); } return(LineItems.SequenceEqual(other.LineItems) && Title.Equals(other.Title, StringComparison.InvariantCultureIgnoreCase)); }
public bool Equals(UpdateLineItemsRequest other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return(LineItems.SequenceEqual(other.LineItems)); }