/// <summary> /// Gets the hash code for this object. /// </summary> /// <returns> /// The hash code for this object. /// </returns> public override int GetHashCode() { int result = PartnerMerchantId.GetHashCode() + MerchantName.GetHashCode() + ReimbursementTender.GetHashCode(); return(result); }
/// <summary> /// Gets the hash code for this object. /// </summary> /// <returns> /// The hash code for this object. /// </returns> /// <remarks> /// * CA2218: /// * If two objects are equal in value based on the Equals override, they must both return the same value for calls /// to GetHashCode. /// * GetHashCode must be overridden whenever Equals is overridden. /// * It is fine if the value overflows. /// </remarks> public override int GetHashCode() { int result = PartnerMerchantIdType.GetHashCode(); if (PartnerMerchantId != null) { result += PartnerMerchantId.GetHashCode(); } if (MerchantTimeZoneId != null) { result += MerchantTimeZoneId.GetHashCode(); } return(result); }