C# Class System.Runtime.CompilerServices.Closure

If the delegate generated by the Lambda compiler needs to either be a closure, or close over constants, the delegate itself will close over the instance of this object. TODO: Prevent this from being exposed as public surface area. See what Linq v1 does with System.Runtime.CompilerServices.ExecutionScope
Mostra file Open project: dotnet/corefx

Public Methods

Method Description
Closure ( object constants, object locals ) : System.ComponentModel

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

Method Details

Closure() public method

Creates an object to hold state of a dynamically generated method.
public Closure ( object constants, object locals ) : System.ComponentModel
constants object The constant values used by the method.
locals object The hoisted local variables from the parent context.
return System.ComponentModel