System.Xml.Xsl.IlGen.XmlILVisitor.MightHaveNamespacesAfterAttributes C# (CSharp) Method

MightHaveNamespacesAfterAttributes() private method

Returns true if the specified node's owner element might have local namespaces added to it after attributes have already been added.
private MightHaveNamespacesAfterAttributes ( XmlILConstructInfo info ) : bool
info XmlILConstructInfo
return bool
        private bool MightHaveNamespacesAfterAttributes(XmlILConstructInfo info) {
            // Get parent element
            if (info != null)
                info = info.ParentElementInfo;

            // If a parent element has not been statically identified, then assume that the runtime
            // element will have namespaces added after attributes.
            if (info == null)
                return true;

            return info.MightHaveNamespacesAfterAttributes;
        }
XmlILVisitor