コード例 #1
0
        protected void Dispose(bool disposing)
        {
            if (disposed)
            {
                return;
            }
            disposed = true;

            WriteEnd(writer);
            if (InStack)
            {
                ContextStack.RemoveAt(ContextStack.Count - 1);
            }
        }
コード例 #2
0
ファイル: Executor.cs プロジェクト: cschladetsch/Pyro
        private Continuation PopContext()
        {
            for (var n = ContextStack.Count - 1; n >= 0; --n)
            {
                var cont = ContextStack[n];
                if (!cont.Active || !cont.Running)
                {
                    continue;
                }

                ContextStack.RemoveAt(n);
                return(_current = cont.Start(this));
            }

            return(null);
        }