#if NET20 || NET30 || NET35 || !NET_4_6 // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System.ComponentModel; using System.Diagnostics; namespace System.Runtime.CompilerServices { /// /// This API supports the .NET Framework infrastructure and is not intended to be used directly from your code. /// Represents the runtime state of a dynamically generated method. /// [EditorBrowsable(EditorBrowsableState.Never), DebuggerStepThrough] public sealed class Closure { /// /// Represents the non-trivial constants and locally executable expressions that are referenced by a dynamically generated method. /// public readonly object[] Constants; /// /// Represents the hoisted local variables from the parent context. /// public readonly object[] Locals; /// /// Creates an object to hold state of a dynamically generated method. /// /// The constant values used by the method. /// The hoisted local variables from the parent context. public Closure(object[] constants, object[] locals) { Constants = constants; Locals = locals; } } } #endif