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

            return
                ((
                     ConstraintType == other.ConstraintType ||
                     ConstraintType != null &&
                     ConstraintType.Equals(other.ConstraintType)
                     ) &&
                 (
                     AdditionalValue == other.AdditionalValue ||
                     AdditionalValue != null &&
                     AdditionalValue.Equals(other.AdditionalValue)
                 ));
        }
 public override bool IsConstraintType(ConstraintType type)
 {
     AssertInUnterminatedTransaction();
     return(ConstraintType.Equals(type));
 }