System.Xml.Xsl.XsltOld.Compiler.PopStylesheet C# (CSharp) Method

PopStylesheet() private method

private PopStylesheet ( ) : Stylesheet
return Stylesheet
        internal Stylesheet PopStylesheet()
        {
            Debug.Assert(this.stylesheet == _stylesheets.Peek());
            Stylesheet stylesheet = (Stylesheet)_stylesheets.Pop();
            this.stylesheet = (Stylesheet)_stylesheets.Peek();
            return stylesheet;
        }

Usage Example

Esempio n. 1
0
        internal Stylesheet CompileImport(Compiler compiler, Uri uri, int id)
        {
            NavigatorInput input = compiler.ResolveDocument(uri);

            compiler.PushInputDocument(input);

            try
            {
                compiler.PushStylesheet(new Stylesheet());
                compiler.Stylesheetid = id;
                CompileDocument(compiler, /*inInclude*/ false);
            }
            catch (XsltCompileException)
            {
                throw;
            }
            catch (Exception e)
            {
                throw new XsltCompileException(e, input.BaseURI, input.LineNumber, input.LinePosition);
            }
            finally
            {
                compiler.PopInputDocument();
            }
            return(compiler.PopStylesheet());
        }
All Usage Examples Of System.Xml.Xsl.XsltOld.Compiler::PopStylesheet