ExecutionScope::IsolateExpression Method (Expression^, array<Object^>^)

 

This API supports the product infrastructure and is not intended to be used directly from your code.

Frees a specified expression tree of external parameter references by replacing the parameter with its current value.

Namespace:   System.Runtime.CompilerServices
Assembly:  System.Core (in System.Core.dll)

public:
Expression^ IsolateExpression(
	Expression^ expression,
	array<Object^>^ locals
)

Parameters

expression
Type: System.Linq.Expressions::Expression^

An expression tree to free of external parameter references.

locals
Type: array<System::Object^>^

An array that contains the hoisted local variables.

Return Value

Type: System.Linq.Expressions::Expression^

An expression tree that does not contain external parameter references.

.NET Framework
Available since 3.5
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top
Show: