System.Xml.Xsl.XsltOld.InputScopeManager.PushNamespace C# (CSharp) Method

PushNamespace() private method

private PushNamespace ( string prefix, string nspace ) : void
prefix string
nspace string
return void
        internal void PushNamespace(string prefix, string nspace) {
            Debug.Assert(this.scopeStack != null, "PushScope wasn't called");
            Debug.Assert(prefix != null);
            Debug.Assert(nspace != null);
            this.scopeStack.AddNamespace(prefix, nspace, this.defaultNS);

            if (prefix == null || prefix.Length == 0) {
                this.defaultNS = nspace;
            }
        }