ExecutionScope.IsolateExpression Method
Microsoft Silverlight will reach end of support after October 2021. Learn more.
This API supports the .NET Framework 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)
Syntax
'Declaration
Public Function IsolateExpression ( _
expression As Expression, _
locals As Object() _
) As Expression
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: 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.
Version Information
Silverlight
Supported in: 5, 4, 3
Silverlight for Windows Phone
Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0
XNA Framework
Supported in: Windows Phone OS 7.0
Platforms
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.