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;
            }
        }