/// <summary> /// Gets the hash code /// </summary> /// <returns>Hash code</returns> public override int GetHashCode() { unchecked // Overflow is fine, just wrap { var hashCode = 41; if (AccountName != null) { hashCode = hashCode * 59 + AccountName.GetHashCode(); } if (AccountNumber != null) { hashCode = hashCode * 59 + AccountNumber.GetHashCode(); } if (SortCode != null) { hashCode = hashCode * 59 + SortCode.GetHashCode(); } if (Balance != null) { hashCode = hashCode * 59 + Balance.GetHashCode(); } if (AvailableBalance != null) { hashCode = hashCode * 59 + AvailableBalance.GetHashCode(); } if (Overdraft != null) { hashCode = hashCode * 59 + Overdraft.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 (Country != null) { hashCode = hashCode * 59 + Country.GetHashCode(); } if (AccountNumber != null) { hashCode = hashCode * 59 + AccountNumber.GetHashCode(); } if (BankAddress != null) { hashCode = hashCode * 59 + BankAddress.GetHashCode(); } if (BeneficiaryBankBIC != null) { hashCode = hashCode * 59 + BeneficiaryBankBIC.GetHashCode(); } if (FedWireNumber != null) { hashCode = hashCode * 59 + FedWireNumber.GetHashCode(); } if (SortCode != null) { hashCode = hashCode * 59 + SortCode.GetHashCode(); } if (ChipNumber != null) { hashCode = hashCode * 59 + ChipNumber.GetHashCode(); } if (RoutingNumber != null) { hashCode = hashCode * 59 + RoutingNumber.GetHashCode(); } if (LegalEntityIdentifier != null) { hashCode = hashCode * 59 + LegalEntityIdentifier.GetHashCode(); } return(hashCode); } }
public override int GetHashCode() { int hash = 1; if (TxnId.Length != 0) { hash ^= TxnId.GetHashCode(); } if (Type != 0) { hash ^= Type.GetHashCode(); } if (SortCode.Length != 0) { hash ^= SortCode.GetHashCode(); } if (Account.Length != 0) { hash ^= Account.GetHashCode(); } if (Name.Length != 0) { hash ^= Name.GetHashCode(); } if (Address.Length != 0) { hash ^= Address.GetHashCode(); } if (IsPseudo != false) { hash ^= IsPseudo.GetHashCode(); } if (IsFoundDirect != false) { hash ^= IsFoundDirect.GetHashCode(); } if (DiscoveredAccountId.Length != 0) { hash ^= DiscoveredAccountId.GetHashCode(); } hash ^= accounts_.GetHashCode(); return(hash); }
/// <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 (BankId != null) { hashCode = hashCode * 59 + BankId.GetHashCode(); } if (AccountNumber != null) { hashCode = hashCode * 59 + AccountNumber.GetHashCode(); } if (SortCode != null) { hashCode = hashCode * 59 + SortCode.GetHashCode(); } if (AccountName != null) { hashCode = hashCode * 59 + AccountName.GetHashCode(); } if (CurrentBalance != null) { hashCode = hashCode * 59 + CurrentBalance.GetHashCode(); } if (OverdraftLimit != null) { hashCode = hashCode * 59 + OverdraftLimit.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 (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); } }
public override int GetHashCode() { return(Number.GetHashCode() ^ SortCode.GetHashCode()); }