/// <summary> /// Returns true if DisplayedData instances are equal /// </summary> /// <param name="other">Instance of DisplayedData to be compared</param> /// <returns>Boolean</returns> public bool Equals(DisplayedData other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( DisplayedDataType == other.DisplayedDataType || DisplayedDataType != null && DisplayedDataType.Equals(other.DisplayedDataType) ) && ( RenderingData == other.RenderingData || RenderingData != null && RenderingData.Equals(other.RenderingData) ) && ( ShowData == other.ShowData || ShowData != null && ShowData.SequenceEqual(other.ShowData) )); }
/// <summary> /// Returns true if MerchantAction instances are equal /// </summary> /// <param name="other">Instance of MerchantAction to be compared</param> /// <returns>Boolean</returns> public bool Equals(MerchantAction other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( ActionType == other.ActionType || ActionType != null && ActionType.Equals(other.ActionType) ) && ( FormFields == other.FormFields || FormFields != null && FormFields.SequenceEqual(other.FormFields) ) && ( RedirectData == other.RedirectData || RedirectData != null && RedirectData.Equals(other.RedirectData) ) && ( RenderingData == other.RenderingData || RenderingData != null && RenderingData.Equals(other.RenderingData) ) && ( ShowData == other.ShowData || ShowData != null && ShowData.SequenceEqual(other.ShowData) )); }