Exemple #1
0
        public ValueExpression Visit(AndExpression expr)
        {
            var left  = expr.Left.Accept(this);
            var right = expr.Right.Accept(this);

            if (left is ConstantExpression leftConstant && leftConstant.Value.IsNull)
            {
                return(leftConstant); // the expression is false
            }
Exemple #2
0
 public virtual bool Visit(AndExpression expr)
 {
     expr.Left.Accept(this);
     expr.Right.Accept(this);
     return(true);
 }