Beispiel #1
0
 public string Evaluate(ExpressionEvaluationContext ctx)
 {
     if (query_.Evaluate(ctx) == "0")
     {
         return(string.Empty);
     }
     else
     {
         return(value_.Evaluate(ctx));
     }
 }
Beispiel #2
0
 public string Evaluate(ExpressionEvaluationContext ctx)
 {
     if (query_.Evaluate(ctx) == ctx.Configuration)
     {
         return("1");
     }
     else
     {
         return("0");
     }
 }
Beispiel #3
0
 public string Evaluate(ExpressionEvaluationContext ctx)
 {
     return((conditions_.Select((c) => c.Evaluate(ctx)).All((c) => c == "1")) ? "1" : "0");
 }
Beispiel #4
0
 public string Evaluate(ExpressionEvaluationContext ctx)
 {
     return(Expressions.Select(e => e.Evaluate(ctx)).Aggregate(new StringBuilder(),
                                                               (sb, s) => sb.Append(s), (sb) => sb.ToString()));
 }
Beispiel #5
0
 public string Evaluate(ExpressionEvaluationContext ctx)
 {
     return(Value);
 }