/// <summary> /// Returns true if BankAccountBban instances are equal /// </summary> /// <param name="other">Instance of BankAccountBban to be compared</param> /// <returns>Boolean</returns> public bool Equals(BankAccountBban other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( AccountNumber == other.AccountNumber || AccountNumber != null && AccountNumber.Equals(other.AccountNumber) ) && ( BankCode == other.BankCode || BankCode != null && BankCode.Equals(other.BankCode) ) && ( BankName == other.BankName || BankName != null && BankName.Equals(other.BankName) ) && ( BranchCode == other.BranchCode || BranchCode != null && BranchCode.Equals(other.BranchCode) ) && ( CheckDigit == other.CheckDigit || CheckDigit != null && CheckDigit.Equals(other.CheckDigit) ) && ( CountryCode == other.CountryCode || CountryCode != null && CountryCode.Equals(other.CountryCode) )); }
/// <summary> /// Returns true if BankInfo instances are equal /// </summary> /// <param name="other">Instance of BankInfo to be compared</param> /// <returns>Boolean</returns> public bool Equals(BankInfo other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( Nickname == other.Nickname || Nickname != null && Nickname.Equals(other.Nickname) ) && ( CurrencyId == other.CurrencyId || CurrencyId != null && CurrencyId.Equals(other.CurrencyId) ) && ( AccountHolder == other.AccountHolder || AccountHolder != null && AccountHolder.Equals(other.AccountHolder) ) && ( AccountNumber == other.AccountNumber || AccountNumber != null && AccountNumber.Equals(other.AccountNumber) ) && ( Iban == other.Iban || Iban != null && Iban.Equals(other.Iban) ) && ( BankName == other.BankName || BankName != null && BankName.Equals(other.BankName) ) && ( SortCode == other.SortCode || SortCode != null && SortCode.Equals(other.SortCode) ) && ( RoutingNumber == other.RoutingNumber || RoutingNumber != null && RoutingNumber.Equals(other.RoutingNumber) ) && ( SwiftBic == other.SwiftBic || SwiftBic != null && SwiftBic.Equals(other.SwiftBic) ) && ( IfscCode == other.IfscCode || IfscCode != null && IfscCode.Equals(other.IfscCode) ) && ( RoutingCode == other.RoutingCode || RoutingCode != null && RoutingCode.Equals(other.RoutingCode) ) && ( UserAddressId == other.UserAddressId || UserAddressId != null && UserAddressId.Equals(other.UserAddressId) ) && ( BankAddress == other.BankAddress || BankAddress != null && BankAddress.Equals(other.BankAddress) )); }