Closure Constructor

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.

Creates an object to hold state of a dynamically generated method.

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

Syntax

'Declaration
Public Sub New ( _
    constants As Object(), _
    locals As Object() _
)
public Closure(
    Object[] constants,
    Object[] locals
)

Parameters

  • constants
    Type: array<System.Object[]
    The constant values that are used by the method.
  • locals
    Type: array<System.Object[]
    The hoisted local variables from the parent context.

Version Information

Silverlight

Supported in: 5, 4

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.