VirtualStackFrame.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / NetFx40 / System.Activities / System / Activities / Debugger / VirtualStackFrame.cs / 1305376 / VirtualStackFrame.cs

                            //------------------------------------------------------------------------------ 
// Copyright (c) Microsoft Corporation.  All rights reserved.
//-----------------------------------------------------------------------------

namespace System.Activities.Debugger 
{
    using System; 
    using System.Collections.Generic; 
    using System.Diagnostics;
    using System.Runtime; 

    // A virtual callstack frame for the interpretter.
    // This is created by calls to EnterState and LeaveState.
    // This is explictly not named "StackFrame" so that it's not confused with 
    // System.Diagnostics.StackFrame.
    [DebuggerNonUserCode] 
    [Fx.Tag.XamlVisible(false)] 
    public class VirtualStackFrame
    { 
        State state;
        IDictionary locals;

        public VirtualStackFrame(State state, IDictionary locals) 
        {
            this.state = state; 
            this.locals = locals; 
        }
 
        public VirtualStackFrame(State state)
            : this(state, null)
        {
            Fx.Assert(state.NumberOfEarlyLocals == 0, "should start with empty locals"); 
        }
 
        public State State 
        {
            get { return this.state; } 
        }

        // All locals (both early-bound and late-bound) for this frame.
        public IDictionary Locals 
        {
            get { return this.locals; } 
        } 

        public override string ToString() 
        {
            return this.state.ToString();
        }
    } 
}

// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
                        

Link Menu

Network programming in C#, Network Programming in VB.NET, Network Programming in .NET
This book is available now!
Buy at Amazon US or
Buy at Amazon UK