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

            return
                ((
                     Catar == other.Catar ||
                     Catar != null &&
                     Catar.Equals(other.Catar)
                     ) &&
                 (
                     Fatar == other.Fatar ||
                     Fatar != null &&
                     Fatar.Equals(other.Fatar)
                 ) &&
                 (
                     Tatar == other.Tatar ||
                     Tatar != null &&
                     Tatar.Equals(other.Tatar)
                 ) &&
                 (
                     Ipm == other.Ipm ||
                     Ipm != null &&
                     Ipm.Equals(other.Ipm)
                 ) &&
                 (
                     Oncforr == other.Oncforr ||
                     Oncforr != null &&
                     Oncforr.Equals(other.Oncforr)
                 ) &&
                 (
                     Oncfnpr == other.Oncfnpr ||
                     Oncfnpr != null &&
                     Oncfnpr.Equals(other.Oncfnpr)
                 ) &&
                 (
                     Oncfgrr == other.Oncfgrr ||
                     Oncfgrr != null &&
                     Oncfgrr.Equals(other.Oncfgrr)
                 ));
        }