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

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

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