Partager via


LiftableConstantProcessor.LiftConstants Method

Definition

Lifts all LiftableConstantExpression nodes, embedding ParameterExpression in their place and exposing the parameter and resolver via LiftedConstants.

public virtual System.Linq.Expressions.Expression LiftConstants (System.Linq.Expressions.Expression expression, System.Linq.Expressions.ParameterExpression contextParameter, System.Collections.Generic.HashSet<string> variableNames);
abstract member LiftConstants : System.Linq.Expressions.Expression * System.Linq.Expressions.ParameterExpression * System.Collections.Generic.HashSet<string> -> System.Linq.Expressions.Expression
override this.LiftConstants : System.Linq.Expressions.Expression * System.Linq.Expressions.ParameterExpression * System.Collections.Generic.HashSet<string> -> System.Linq.Expressions.Expression
Public Overridable Function LiftConstants (expression As Expression, contextParameter As ParameterExpression, variableNames As HashSet(Of String)) As Expression

Parameters

expression
Expression

An expression containing LiftableConstantExpression nodes.

contextParameter
ParameterExpression

The ParameterExpression to be embedded in the lifted constant nodes' resolvers, instead of their lambda parameter.

variableNames
HashSet<String>

A set of variables already in use, for uniquification. Any generates variables will be added to this set.

Returns

An expression tree containing ParameterExpression nodes instead of LiftableConstantExpression nodes.

Implements

Applies to