ExecutionScope.IsolateExpression(Expression, Object[]) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Frees a specified expression tree of external parameter references by replacing the parameter with its current value.
This API supports the product infrastructure and is not intended to be used directly from your code.
public:
System::Linq::Expressions::Expression ^ IsolateExpression(System::Linq::Expressions::Expression ^ expression, cli::array <System::Object ^> ^ locals);
public System.Linq.Expressions.Expression IsolateExpression (System.Linq.Expressions.Expression expression, object[] locals);
member this.IsolateExpression : System.Linq.Expressions.Expression * obj[] -> System.Linq.Expressions.Expression
Public Function IsolateExpression (expression As Expression, locals As Object()) As Expression
Parameters
- expression
- Expression
An expression tree to free of external parameter references.
- locals
- Object[]
An array that contains the hoisted local variables.
Returns
An expression tree that does not contain external parameter references.