public RuleExpression(IEnumerable <ConditionExpression> conditions, IssueExpression issue)
 {
     if (conditions != null)
     {
         this.Conditions = conditions.ToArray();
     }
     else
     {
         this.Conditions = new ConditionExpression[] { };
     }
     this.Issue = issue;
 }
Esempio n. 2
0
 public virtual bool Equals(IssueExpression other)
 {
     if (other == null)
     {
         return(false);
     }
     if (object.ReferenceEquals(this, other))
     {
         return(true);
     }
     if (!object.Equals(this.Issuance, other.Issuance))
     {
         return(false);
     }
     if (!Enumerable.SequenceEqual(this.Expressions, other.Expressions))
     {
         return(false);
     }
     return(true);
 }