C# Class FrameDAL.Linq.Translation.PartialEvaluator

Rewrites an expression tree so that locally isolatable sub-expressions are evaluated and converted into ConstantExpression nodes.
Mostra file Open project: vincentlauvlwj/FrameDAL

Public Methods

Method Description
Eval ( Expression expression ) : Expression

Performs evaluation & replacement of independent sub-trees

Eval ( Expression expression, bool>.Func fnCanBeEvaluated ) : Expression

Performs evaluation & replacement of independent sub-trees

Eval ( Expression expression, bool>.Func fnCanBeEvaluated, Expression>.Func fnPostEval ) : Expression

Private Methods

Method Description
CanBeEvaluatedLocally ( Expression expression ) : bool

Method Details

Eval() public static method

Performs evaluation & replacement of independent sub-trees
public static Eval ( Expression expression ) : Expression
expression System.Linq.Expressions.Expression The root of the expression tree.
return System.Linq.Expressions.Expression

Eval() public static method

Performs evaluation & replacement of independent sub-trees
public static Eval ( Expression expression, bool>.Func fnCanBeEvaluated ) : Expression
expression System.Linq.Expressions.Expression The root of the expression tree.
fnCanBeEvaluated bool>.Func A function that decides whether a given expression node can be part of the local function.
return System.Linq.Expressions.Expression

Eval() public static method

public static Eval ( Expression expression, bool>.Func fnCanBeEvaluated, Expression>.Func fnPostEval ) : Expression
expression System.Linq.Expressions.Expression
fnCanBeEvaluated bool>.Func
fnPostEval Expression>.Func
return System.Linq.Expressions.Expression