System.Xml.Xsl.IlGen.XmlILOptimizerVisitor.MatchesContentTest C# (CSharp) Méthode

MatchesContentTest() private méthode

Returns true if "typ" matches one of the XPath content node tests: *, text(), comment(), pi(), or node().
private MatchesContentTest ( XmlQueryType typ ) : bool
typ XmlQueryType
Résultat bool
        private bool MatchesContentTest(XmlQueryType typ) {
            if (typ == XmlQueryTypeFactory.Element) return true;
            if (typ == XmlQueryTypeFactory.Text) return true;
            if (typ == XmlQueryTypeFactory.Comment) return true;
            if (typ == XmlQueryTypeFactory.PI) return true;
            if (typ == XmlQueryTypeFactory.Content) return true;

            return false;
        }
XmlILOptimizerVisitor