System.Xml.Xsl.Xslt.QilGenerator.SetDebugNs C# (CSharp) Method

SetDebugNs() private method

private SetDebugNs ( QilNode n, QilList nsList ) : QilNode
n QilNode
nsList QilList
return QilNode
        private QilNode SetDebugNs(QilNode n, QilList nsList)
        {
            if (n != null && nsList != null)
            {
                QilNode nsVar = GetNsVar(nsList);
                Debug.Assert(nsVar.XmlType.IsSubtypeOf(T.NamespaceS));
                if (nsVar.XmlType.Cardinality == XmlQueryCardinality.One)
                {
                    // We want CLR type to be XmlQuerySequence instead of XPathNavigator
                    nsVar = _f.TypeAssert(nsVar, T.NamespaceS);
                }
                n = AddDebugVariable(CloneName(_nameNamespaces), nsVar, n);
            }
            return n;
        }
QilGenerator