Пример #1
0
        /// <summary>
        /// To be called when starting a stack frame.
        /// The returned IDisposable should be used in a using(){...} block.
        /// </summary>
        /// <param name="n">Node to push on the stack.</param>
        /// <param name="index">Index of the node of the same name in a collection.</param>
        /// <returns>Object to dispose when exiting the frame.</returns>
        protected IDisposable StackFrame(XmlNode n, int index)
        {
            XmlLoaderStackFrame sf = new XmlLoaderStackFrame(this, n, index);

            _executionStack.Push(sf);
            if (_logStackActivity)
            {
                WriteStackLocation("Enter");
            }
            return(sf);
        }
Пример #2
0
        protected IDisposable StackFrame(System.Xml.XmlNode n, int index)
        {
            XmlLoaderStackFrame frame = new XmlLoaderStackFrame(this, n, index);

            this.executionStack.Push(frame);
            if (this.logStackActivity)
            {
                this.WriteStackLocation("Enter");
            }
            return(frame);
        }
Пример #3
0
        /// <summary>
        /// to be called when starting a stack frame.
        /// The returned IDisposable should be used in a using(){...} block
        /// </summary>
        /// <param name="n">node to push on the stack</param>
        /// <param name="index">index of the node of the same name in a collection</param>
        /// <returns>object to dispose when exiting the frame</returns>
        protected IDisposable StackFrame(XmlNode n, int index)
        {
            XmlLoaderStackFrame sf = new XmlLoaderStackFrame(this, n, index);

            _executionStack.Push(sf);
            if (_logStackActivity)
                WriteStackLocation("Enter");
            return sf;
        }
Пример #4
0
 protected IDisposable StackFrame(System.Xml.XmlNode n, int index)
 {
     XmlLoaderStackFrame frame = new XmlLoaderStackFrame(this, n, index);
     this.executionStack.Push(frame);
     if (this.logStackActivity)
     {
         this.WriteStackLocation("Enter");
     }
     return frame;
 }