You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Connected.Framework/Connected.Expressions/Evaluation/PartialEvaluator.cs

17 lines
515 B

using System.Linq.Expressions;
namespace Connected.Expressions.Evaluation;
internal sealed class PartialEvaluator
{
public static Expression Eval(ExpressionCompilationContext context, Expression expression)
{
return Eval(context, expression, null);
}
public static Expression Eval(ExpressionCompilationContext context, Expression expression, Func<ConstantExpression, Expression>? fnPostEval)
{
return SubtreeEvaluator.Eval(context, ColumnNominator.Nominate(expression), fnPostEval, expression);
}
}