/// <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 (AccountId != null)
         {
             hashCode = hashCode * 59 + AccountId.GetHashCode();
         }
         if (BillingAgreementId != null)
         {
             hashCode = hashCode * 59 + BillingAgreementId.GetHashCode();
         }
         if (CompanyName != null)
         {
             hashCode = hashCode * 59 + CompanyName.GetHashCode();
         }
         if (CountryCode != null)
         {
             hashCode = hashCode * 59 + CountryCode.GetHashCode();
         }
         if (CustomerAccountStatus != null)
         {
             hashCode = hashCode * 59 + CustomerAccountStatus.GetHashCode();
         }
         if (CustomerAddressStatus != null)
         {
             hashCode = hashCode * 59 + CustomerAddressStatus.GetHashCode();
         }
         if (FirstName != null)
         {
             hashCode = hashCode * 59 + FirstName.GetHashCode();
         }
         if (PayerId != null)
         {
             hashCode = hashCode * 59 + PayerId.GetHashCode();
         }
         if (Surname != null)
         {
             hashCode = hashCode * 59 + Surname.GetHashCode();
         }
         return(hashCode);
     }
 }
Ejemplo n.º 2
0
 /// <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 (CustomerAccountStatus != null)
         {
             hashCode = hashCode * 59 + CustomerAccountStatus.GetHashCode();
         }
         if (CustomerAddressStatus != null)
         {
             hashCode = hashCode * 59 + CustomerAddressStatus.GetHashCode();
         }
         if (PayerId != null)
         {
             hashCode = hashCode * 59 + PayerId.GetHashCode();
         }
         return(hashCode);
     }
 }