System.Xml.Xsl.Runtime.XmlQueryOutput.WriteCachedNamespaces C# (CSharp) Méthode

WriteCachedNamespaces() private méthode

Namespace declarations are added to this.nsmgr. Just before element content has begun, write out all namespaces that were declared locally on the element.
private WriteCachedNamespaces ( ) : void
Résultat void
        private void WriteCachedNamespaces() {
            string prefix, ns;

            while (this.cntNmsp != 0) {
                // Output each prefix->ns mapping pair
                Debug.Assert(this.nsmgr != null);
                this.cntNmsp--;
                this.nsmgr.GetNamespaceDeclaration(this.cntNmsp, out prefix, out ns);
                Writer.WriteNamespaceDeclaration(prefix, ns);
            }
        }