/// <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 (AccountNumber != null) { hashCode = hashCode * 59 + AccountNumber.GetHashCode(); } if (BankCode != null) { hashCode = hashCode * 59 + BankCode.GetHashCode(); } if (BankName != null) { hashCode = hashCode * 59 + BankName.GetHashCode(); } if (BranchCode != null) { hashCode = hashCode * 59 + BranchCode.GetHashCode(); } if (CheckDigit != null) { hashCode = hashCode * 59 + CheckDigit.GetHashCode(); } if (CountryCode != null) { hashCode = hashCode * 59 + CountryCode.GetHashCode(); } return(hashCode); } }
public virtual int _GetUniqueIdentifier() { var hashCode = 399326290; hashCode = hashCode * -1521134295 + (Id?.GetHashCode() ?? 0); hashCode = hashCode * -1521134295 + (PaymentMethod?.GetHashCode() ?? 0); hashCode = hashCode * -1521134295 + (CardholderName?.GetHashCode() ?? 0); hashCode = hashCode * -1521134295 + (CardNumber?.GetHashCode() ?? 0); hashCode = hashCode * -1521134295 + (CCV?.GetHashCode() ?? 0); hashCode = hashCode * -1521134295 + (ExpirationMonth?.GetHashCode() ?? 0); hashCode = hashCode * -1521134295 + (ExpirationYear?.GetHashCode() ?? 0); hashCode = hashCode * -1521134295 + (IBANNumber?.GetHashCode() ?? 0); hashCode = hashCode * -1521134295 + (BankName?.GetHashCode() ?? 0); 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); } }