Exemplo n.º 1
0
 protected LogicalExpression(ComparisonExpression leftOperand, ComparisonExpression rightOperand)
 {
     LeftOperand  = leftOperand.Evaluate();
     RightOperand = rightOperand == null ? true : rightOperand.Evaluate();
 }
Exemplo n.º 2
0
        public bool Check(string value)
        {
            var expression = new ComparisonExpression(_operatorType, _leftOperand, value);

            return(expression.Evaluate());
        }