示例#1
0
        internal void PopContextState()
        {
            SaveContextState scs = _contextStack.Pop();

            if (scs.context != null)
            {
                _currentContext = scs.context;
                _currentContext.ContextState = scs.contextState;
            }
        }
示例#2
0
        internal void PushContextState()
        {
            SaveContextState scs = new SaveContextState();

            scs.context = _currentContext;
            if (_currentContext != null)
            {
                scs.contextState = _currentContext.ContextState;
            }
            _contextStack.Push(scs);
        }