/// <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 (Type != null) { hashCode = hashCode * 59 + Type.GetHashCode(); } if (Fees != null) { hashCode = hashCode * 59 + Fees.GetHashCode(); } if (InterestRate != null) { hashCode = hashCode * 59 + InterestRate.GetHashCode(); } if (RequiredWarranties != null) { hashCode = hashCode * 59 + RequiredWarranties.GetHashCode(); } if (TermsConditions != null) { hashCode = hashCode * 59 + TermsConditions.GetHashCode(); } return(hashCode); } }
/// <summary> /// Returns true if BusinessInvoiceFinancings instances are equal /// </summary> /// <param name="other">Instance of BusinessInvoiceFinancings to be compared</param> /// <returns>Boolean</returns> public bool Equals(BusinessInvoiceFinancings other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( Type == other.Type || Type != null && Type.Equals(other.Type) ) && ( Fees == other.Fees || Fees != null && Fees.Equals(other.Fees) ) && ( InterestRate == other.InterestRate || InterestRate != null && InterestRate.Equals(other.InterestRate) ) && ( RequiredWarranties == other.RequiredWarranties || RequiredWarranties != null && RequiredWarranties.SequenceEqual(other.RequiredWarranties) ) && ( TermsConditions == other.TermsConditions || TermsConditions != null && TermsConditions.Equals(other.TermsConditions) )); }