/// <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 (BillingAddress != null) { hashCode = hashCode * 59 + BillingAddress.GetHashCode(); } if (PersonalInformation != null) { hashCode = hashCode * 59 + PersonalInformation.GetHashCode(); } if (CompanyInformation != null) { hashCode = hashCode * 59 + CompanyInformation.GetHashCode(); } if (MerchantCustomerId != null) { hashCode = hashCode * 59 + MerchantCustomerId.GetHashCode(); } if (VatNumber != null) { hashCode = hashCode * 59 + VatNumber.GetHashCode(); } return(hashCode); } }
/// <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 (Address != null) { hashCode = hashCode * 59 + Address.GetHashCode(); } if (CompanyInformation != null) { hashCode = hashCode * 59 + CompanyInformation.GetHashCode(); } if (ContactDetails != null) { hashCode = hashCode * 59 + ContactDetails.GetHashCode(); } if (FiscalNumber != null) { hashCode = hashCode * 59 + FiscalNumber.GetHashCode(); } return(hashCode); } }