internal override bool Match(CodeStatement comperand)
        {
            CodeExpressionStatement comperandStatement = comperand as CodeExpressionStatement;

            return((comperandStatement != null) &&
                   RuleExpressionWalker.Match(exprStatement.Expression, comperandStatement.Expression));
        }
        internal override bool Match(CodeStatement comperand)
        {
            CodeAssignStatement comperandStatement = comperand as CodeAssignStatement;

            return((comperandStatement != null) &&
                   RuleExpressionWalker.Match(assignStatement.Left, comperandStatement.Left) &&
                   RuleExpressionWalker.Match(assignStatement.Right, comperandStatement.Right));
        }
Exemple #3
0
        public override bool Equals(object obj)
        {
            bool equals = false;

            if (obj is RuleExpressionCondition declarativeConditionDefinition)
            {
                equals = ((this.Name == declarativeConditionDefinition.Name) &&
                          ((this._expression == null && declarativeConditionDefinition.Expression == null) ||
                           (this._expression != null && RuleExpressionWalker.Match(this._expression, declarativeConditionDefinition.Expression))));
            }

            return(equals);
        }