C# Class SIPSorcery.Persistence.Evaluator

Show file Open project: sipsorcery/sipsorcery

Public Methods

Method Description
PartialEval ( Expression expression ) : Expression

Performs evaluation & replacement of independent sub-trees

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

Performs evaluation & replacement of independent sub-trees

Private Methods

Method Description
CanBeEvaluatedLocally ( Expression expression ) : bool

Method Details

PartialEval() public static method

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

PartialEval() public static method

Performs evaluation & replacement of independent sub-trees
public static PartialEval ( 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