Show / Hide Table of Contents

Class Evaluator

Inheritance
System.Object
Evaluator
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Sartorius.SAF.Serialization
Assembly: Sartorius.SAF.dll
Syntax
public static class Evaluator

Methods

View Source

PartialEval(Expression)

Performs evaluation and replacement of independent sub-trees

Declaration
public static Expression PartialEval(Expression expression)
Parameters
Type Name Description
System.Linq.Expressions.Expression expression

The root of the expression tree.

Returns
Type Description
System.Linq.Expressions.Expression

A new tree with sub-trees evaluated and replaced.

View Source

PartialEval(Expression, Func<Expression, Boolean>)

Performs evaluation and replacement of independent sub-trees

Declaration
public static Expression PartialEval(Expression expression, Func<Expression, bool> fnCanBeEvaluated)
Parameters
Type Name Description
System.Linq.Expressions.Expression expression

The root of the expression tree.

System.Func<System.Linq.Expressions.Expression, System.Boolean> fnCanBeEvaluated

A function that decides whether a given expression node can be part of the local function.

Returns
Type Description
System.Linq.Expressions.Expression

A new tree with sub-trees evaluated and replaced.

  • View Source
Back to top Generated by DocFX