コード例 #1
0
        /// <summary>
        /// Returns true if BankAccountVisibleFieldsRule instances are equal
        /// </summary>
        /// <param name="other">Instance of BankAccountVisibleFieldsRule to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(BankAccountVisibleFieldsRule other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     Countries == other.Countries ||
                     Countries != null &&
                     Countries.SequenceEqual(other.Countries)
                     ) &&
                 (
                     Currencies == other.Currencies ||
                     Currencies != null &&
                     Currencies.SequenceEqual(other.Currencies)
                 ) &&
                 (
                     RequiredFields == other.RequiredFields ||
                     RequiredFields != null &&
                     RequiredFields.SequenceEqual(other.RequiredFields)
                 ) &&
                 (
                     OptionalFields == other.OptionalFields ||
                     OptionalFields != null &&
                     OptionalFields.SequenceEqual(other.OptionalFields)
                 ));
        }