Example #1
0
        internal void PopPipeArguments()
        {
            if (_pipeArguments.Count == 1)
            {
                throw new InvalidOperationException(RS.PopPipeArgOverflow);
            }

            ScriptPipeArguments pipeArguments = _pipeArguments.Pop();

            // Might be not null in case of an exception
            pipeArguments.Clear();
            _availablePipeArguments.Push(pipeArguments);
            _currentPipeArguments = _pipeArguments.Peek();
        }