private static Expression EvaluateAtRuntime(Expression expression)
        {
            var nominees = RuntimeEvaluationNominator.Nominate(expression);

            expression = RuntimeEvaluator.Evaluate(expression, nominees);
            return(expression);
        }
 public static Expression Evaluate(Expression expression, HashSet<Expression> nominees)
 {
     var instance = new RuntimeEvaluator(nominees);
     return instance.Visit(expression);
 }
Beispiel #3
0
        public static Expression Evaluate(Expression expression, HashSet <Expression> nominees)
        {
            var instance = new RuntimeEvaluator(nominees);

            return(instance.Visit(expression));
        }