public override bool Equals(object obj) { if (obj == null) { return(false); } if (Object.ReferenceEquals(this, obj)) { return(true); } if (this.GetType() != obj.GetType()) { return(false); } var other = (VLPayment)obj; //reference types if (!Object.Equals(m_comment, other.m_comment)) { return(false); } if (!Object.Equals(m_customCode1, other.m_customCode1)) { return(false); } if (!Object.Equals(m_customCode2, other.m_customCode2)) { return(false); } //value types if (!m_paymentId.Equals(other.m_paymentId)) { return(false); } if (!m_client.Equals(other.m_client)) { return(false); } if (!m_paymentType.Equals(other.m_paymentType)) { return(false); } if (!m_paymentDate.Equals(other.m_paymentDate)) { return(false); } if (!m_isActive.Equals(other.m_isActive)) { return(false); } if (!m_isTimeLimited.Equals(other.m_isTimeLimited)) { return(false); } if (!m_validFromDt.Equals(other.m_validFromDt)) { return(false); } if (!m_validToDt.Equals(other.m_validToDt)) { return(false); } if (!m_creditType.Equals(other.m_creditType)) { return(false); } if (!m_quantity.Equals(other.m_quantity)) { return(false); } if (!m_quantityUsed.Equals(other.m_quantityUsed)) { return(false); } if (!m_attributeFlags.Equals(other.m_attributeFlags)) { return(false); } return(true); }
/// <summary> /// Determines whether the specified Object is equal to the current Object. /// </summary> /// <param name="obj"></param> /// <returns></returns> public override bool Equals(object obj) { if (obj == null) { return(false); } if (Object.ReferenceEquals(this, obj)) { return(true); } if (this.GetType() != obj.GetType()) { return(false); } var other = (VLResponse)obj; //reference types if (!Object.Equals(RecipientIP, other.RecipientIP)) { return(false); } //value types if (!m_responseId.Equals(other.m_responseId)) { return(false); } if (!m_survey.Equals(other.m_survey)) { return(false); } if (!m_collector.Equals(other.m_collector)) { return(false); } if (!m_responseType.Equals(other.m_responseType)) { return(false); } if (!m_recipient.Equals(other.m_recipient)) { return(false); } if (!m_userAgent.Equals(other.m_userAgent)) { return(false); } if (!m_openDate.Equals(other.m_openDate)) { return(false); } if (!m_closeDate.Equals(other.m_closeDate)) { return(false); } if (!m_attributeFlags.Equals(other.m_attributeFlags)) { return(false); } if (!m_mustBeCharged.Equals(other.m_mustBeCharged)) { return(false); } if (!m_creditType.Equals(other.m_creditType)) { return(false); } if (!m_collectorPayment.Equals(other.m_collectorPayment)) { return(false); } if (!m_isCharged.Equals(other.m_isCharged)) { return(false); } return(true); }