IsolateExpression Method
Collapse the table of content
Expand the table of content

ExecutionScope.IsolateExpression Method

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

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

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,
	Object[] locals
)

Parameters

expression
Type: System.Linq.Expressions.Expression
An expression tree to free of external parameter references.
locals
Type: 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.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft