System.Xml.Xsl.Runtime.XmlQueryOutput.XmlStateToNodeType C# (CSharp) 메소드

XmlStateToNodeType() 개인적인 메소드

Return the type of node that is under construction given the specified XmlState.
private XmlStateToNodeType ( XmlState xstate ) : XPathNodeType
xstate XmlState
리턴 XPathNodeType
        private XPathNodeType XmlStateToNodeType(XmlState xstate) {
            switch (xstate) {
                case XmlState.EnumAttrs: return XPathNodeType.Element;
                case XmlState.WithinContent: return XPathNodeType.Element;
                case XmlState.WithinAttr: return XPathNodeType.Attribute;
                case XmlState.WithinComment: return XPathNodeType.Comment;
                case XmlState.WithinPI: return XPathNodeType.ProcessingInstruction;
            }

            Debug.Assert(false, xstate.ToString() + " is not a valid XmlState.");
            return XPathNodeType.Element;
        }