The documentation comes from the Markdown files in the source code, so is always up-to-date but available only in English. Enjoy!
Expression Visitor that takes the nominated subtrees of the ExpressionNominator
, compiles and evaluates them and then replaces each subtree by the corresponding value.
ExpressionEvaluator.Eval
also is able to evaluate a complete expression tree and return the value (or throw an exception if it's not possible to do so).
public class ExpressionEvaluator : ExpressionVisitor
{
public static Expression PartialEval(Expression exp);
public static object Eval(Expression expression);
}
In order to avoid compilation of too many sub-expressions, the ExpressionEvaluator
catches the compilations for common sub-expressions:
© Signum Software. All Rights Reserved.
Powered by Signum Framework