C# Class Rebel.Framework.Expressions.Remotion.CustomPartialEvaluatingExpressionTreeVisitor

This is based on PartialEvaluatingExpressionTreeVisitor but with a modification to avoid partially evaluating subtrees if the subtree is a binary expression between and a value. Normally, PartialEvaluatingExpressionTreeVisitor would eagerly compile certain types of subtree to make them "easier" to parse but this would mean we'd lose the metadata contained in the DynamicMemberMetadata.GetMember call and would just end up with the constant False evaluation return value when later visiting the QueryModel.
Unfortunately PartialEvaluatingExpressionTreeVisitor has a private constructor as of Relinq version 1.13.122.1 so some code is duplicated rather than inherited
Inheritance: System.Linq.Expressions.ExpressionTreeVisitor
Afficher le fichier Open project: RebelCMS/rebelcmsxu5 Class Usage Examples

Méthodes publiques

Méthode Description
EvaluateIndependentSubtrees ( Expression expressionTree ) : Expression
VisitExpression ( Expression expression ) : Expression

Méthodes protégées

Méthode Description
EvaluateSubtree ( Expression subtree ) : Expression
VisitUnknownNonExtensionExpression ( Expression expression ) : Expression

Private Methods

Méthode Description
CustomPartialEvaluatingExpressionTreeVisitor ( Expression treeRoot, Remotion.Linq.Parsing.ExpressionTreeVisitors.TreeEvaluation.PartialEvaluationInfo partialEvaluationInfo ) : System

Method Details

EvaluateIndependentSubtrees() public static méthode

public static EvaluateIndependentSubtrees ( Expression expressionTree ) : Expression
expressionTree System.Linq.Expressions.Expression
Résultat System.Linq.Expressions.Expression

EvaluateSubtree() protected méthode

protected EvaluateSubtree ( Expression subtree ) : Expression
subtree System.Linq.Expressions.Expression
Résultat System.Linq.Expressions.Expression

VisitExpression() public méthode

public VisitExpression ( Expression expression ) : Expression
expression System.Linq.Expressions.Expression
Résultat System.Linq.Expressions.Expression

VisitUnknownNonExtensionExpression() protected méthode

protected VisitUnknownNonExtensionExpression ( Expression expression ) : Expression
expression System.Linq.Expressions.Expression
Résultat System.Linq.Expressions.Expression