System.Xml.Tests.XsltApiTestCaseBase.GetDocType C# (CSharp) Метод

GetDocType() публичный Метод

public GetDocType ( String s ) : DocType
s String
Результат DocType
        public DocType GetDocType(String s)
        {
            switch (s.ToUpper())
            {
                case "XPATHDOCUMENT":
                    return DocType.XPathDocument;

                case "XMLDOCUMENT":
                    return DocType.XmlDocument;

                default: // DocType Type not important, using default
                    return DocType.XPathDocument;
            }
        }