/// <summary> /// Gets the hash code /// </summary> /// <returns>Hash code</returns> public override int GetHashCode() { unchecked // Overflow is fine, just wrap { var hashCode = 41; // Suitable nullity checks etc, of course :) if (AcceptedTermsAndConditions != null) { hashCode = hashCode * 59 + AcceptedTermsAndConditions.GetHashCode(); } if (PaymentProduct9000SpecificInput != null) { hashCode = hashCode * 59 + PaymentProduct9000SpecificInput.GetHashCode(); } return(hashCode); } }
/// <summary> /// Returns true if EInvoicePaymentMethodSpecificInput instances are equal /// </summary> /// <param name="other">Instance of EInvoicePaymentMethodSpecificInput to be compared</param> /// <returns>Boolean</returns> public bool Equals(EInvoicePaymentMethodSpecificInput other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( AcceptedTermsAndConditions == other.AcceptedTermsAndConditions || AcceptedTermsAndConditions != null && AcceptedTermsAndConditions.Equals(other.AcceptedTermsAndConditions) ) && ( PaymentProduct9000SpecificInput == other.PaymentProduct9000SpecificInput || PaymentProduct9000SpecificInput != null && PaymentProduct9000SpecificInput.Equals(other.PaymentProduct9000SpecificInput) )); }