Show / Hide Table of Contents

Class Evaluator

Inheritance
object
Evaluator
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
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
Expression expression

The root of the expression tree.

Returns
Type Description
Expression

A new tree with sub-trees evaluated and replaced.

View Source

PartialEval(Expression, Func<Expression, bool>)

Performs evaluation and replacement of independent sub-trees

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

The root of the expression tree.

Func<Expression, bool> fnCanBeEvaluated

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

Returns
Type Description
Expression

A new tree with sub-trees evaluated and replaced.

  • View Source
Back to top Generated by DocFX