public override int GetHashCode()
 {
     unchecked
     {
         return((BankAccountId.GetHashCode() * 397) ^ UnixTimestamp.GetHashCode());
     }
 }
        public override int GetHashCode()
        {
            int hashCode = 388412647;

            if (Context != null)
            {
                hashCode += Context.GetHashCode();
            }

            if (Id != null)
            {
                hashCode += Id.GetHashCode();
            }

            if (Status != null)
            {
                hashCode += Status.GetHashCode();
            }

            if (TotalMoney != null)
            {
                hashCode += TotalMoney.GetHashCode();
            }

            if (InitiatedAt != null)
            {
                hashCode += InitiatedAt.GetHashCode();
            }

            if (BankAccountId != null)
            {
                hashCode += BankAccountId.GetHashCode();
            }

            if (Entries != null)
            {
                hashCode += Entries.GetHashCode();
            }

            return(hashCode);
        }
Exemple #3
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 (BankAccountId != null)
         {
             hashCode = hashCode * 59 + BankAccountId.GetHashCode();
         }
         if (Nickname != null)
         {
             hashCode = hashCode * 59 + Nickname.GetHashCode();
         }
         if (CurrencyId != null)
         {
             hashCode = hashCode * 59 + CurrencyId.GetHashCode();
         }
         if (AccountHolder != null)
         {
             hashCode = hashCode * 59 + AccountHolder.GetHashCode();
         }
         if (AccountNumber != null)
         {
             hashCode = hashCode * 59 + AccountNumber.GetHashCode();
         }
         if (Iban != null)
         {
             hashCode = hashCode * 59 + Iban.GetHashCode();
         }
         if (BankName != null)
         {
             hashCode = hashCode * 59 + BankName.GetHashCode();
         }
         if (SortCode != null)
         {
             hashCode = hashCode * 59 + SortCode.GetHashCode();
         }
         if (RoutingNumber != null)
         {
             hashCode = hashCode * 59 + RoutingNumber.GetHashCode();
         }
         if (SwiftBic != null)
         {
             hashCode = hashCode * 59 + SwiftBic.GetHashCode();
         }
         if (IfscCode != null)
         {
             hashCode = hashCode * 59 + IfscCode.GetHashCode();
         }
         if (RoutingCode != null)
         {
             hashCode = hashCode * 59 + RoutingCode.GetHashCode();
         }
         if (UserAddressId != null)
         {
             hashCode = hashCode * 59 + UserAddressId.GetHashCode();
         }
         if (BankAddress != null)
         {
             hashCode = hashCode * 59 + BankAddress.GetHashCode();
         }
         return(hashCode);
     }
 }