Replace tree branches that can be evaluated with their value (in a ConstantExpression).
Inheritance Hierarchy
Object | ||
CompositeVisitor<(Of <(<'TResult>)>)>..::..VisitorBase | ||
PartialEvaluator |
Assembly: Epic.Query.Linq
Declaration Syntax
C# |
public sealed class PartialEvaluator : CompositeVisitor<(Of <(<'TResult>)>)>..::..VisitorBase, IVisitor<Expression, MemberExpression>, IVisitor<Expression, MethodCallExpression>, IVisitor<Expression>
Members
All Members | Constructors | Methods | |||
Member | Description | |
---|---|---|
PartialEvaluator(CompositeVisitor<(Of <<'(Expression>)>>)) |
Initializes a new instance of the PartialEvaluator class.
| |
Visit(MemberExpression, IVisitContext) |
Visits a MemberExpression and returns a ConstantExpression containing the corresponding value,
or the target itself when it can not be reduced.
| |
Visit(MethodCallExpression, IVisitContext) |
Visits a MethodCallExpression and returns a ConstantExpression containing the corresponding value,
or the target itself when it can not be reduced.
|