Exemplo n.º 1
0
        public LambdaExpression(string parameterName, Expression body)
            : base(ExpressionType.Lambda)
        {
            Require.NotEmpty(parameterName, "parameterName");
            Require.NotNull(body, "body");

            ParameterName = parameterName;
            Body          = ExpressionUtil.CoerceBoolExpression(body);
        }
Exemplo n.º 2
0
 protected Expression ParseBool()
 {
     return(ExpressionUtil.CoerceBoolExpression(ParseCommon()));
 }
Exemplo n.º 3
0
 public LogicalExpression(Operator @operator, Expression left, Expression right)
     : base(ExpressionType.Bool, @operator, ExpressionUtil.CoerceBoolExpression(left), ExpressionUtil.CoerceBoolExpression(right))
 {
 }
Exemplo n.º 4
0
 public BoolUnaryExpression(Operator @operator, Expression expression)
     : base(ExpressionType.Bool, ExpressionUtil.CoerceBoolExpression(expression), @operator)
 {
 }