Beispiel #1
0
        public Object Evaluate(String expression, NameValueDataList dataList)
        {
            var advResolver = new AdvancedDataResolver(n => dataList[n]);

            var result = ExpressionEvaluator.Eval(expression, advResolver);

            return(result);
        }
Beispiel #2
0
 public static ExpressionResult TryEval(String expression, Func<String, Object> varResolver)
 {
     var advResolver = new AdvancedDataResolver(varResolver);
     return TryEval(expression, advResolver);
 }
Beispiel #3
0
 public static Object Eval(ExpressionNode node, Func<String, Object> varResolver)
 {
     var advResolver = new AdvancedDataResolver(varResolver);
     return Eval(node, advResolver);
 }