/// <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 BranchIdentification instances are equal /// </summary> /// <param name="other">Instance of BranchIdentification to be compared</param> /// <returns>Boolean</returns> public bool Equals(BranchIdentification other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( Type == other.Type || Type != null && Type.Equals(other.Type) ) && ( Code == other.Code || Code != null && Code.Equals(other.Code) ) && ( CheckDigit == other.CheckDigit || CheckDigit != null && CheckDigit.Equals(other.CheckDigit) ) && ( Name == other.Name || Name != null && Name.Equals(other.Name) ) && ( RelatedBranch == other.RelatedBranch || RelatedBranch != null && RelatedBranch.Equals(other.RelatedBranch) ) && ( OpeningDate == other.OpeningDate || OpeningDate != null && OpeningDate.Equals(other.OpeningDate) )); }