Пример #1
0
 public static XmlReader Create(Stream input, XmlReaderSettings settings, string baseUri)
 {
     if (AsyncUtil.IsAsyncEnabled)
     {
         return(XmlReaderAsync.Create(input, settings, baseUri));
     }
     else
     {
         return(XmlReader.Create(input, settings));//, baseUri);
     }
 }
Пример #2
0
 public static XmlReader Create(Stream input)
 {
     if (AsyncUtil.IsAsyncEnabled)
     {
         return(XmlReaderAsync.Create(input));
     }
     else
     {
         return(XmlReader.Create(input));
     }
 }
Пример #3
0
 public static XmlReader Create(string inputUri, XmlReaderSettings settings, XmlParserContext inputContext)
 {
     if (AsyncUtil.IsAsyncEnabled)
     {
         return(XmlReaderAsync.Create(FilePathUtil.getStream(inputUri), settings, inputContext));
     }
     else
     {
         return(XmlReader.Create(FilePathUtil.getStream(inputUri)));//, settings, inputContext);
     }
 }
Пример #4
0
 public static XmlReader Create(string inputUri)
 {
     if (AsyncUtil.IsAsyncEnabled)
     {
         return(XmlReaderAsync.Create(FilePathUtil.getStream(inputUri)));
     }
     else
     {
         return(XmlReader.Create(FilePathUtil.getStream(inputUri)));
     }
 }
Пример #5
0
 public static XmlReader Create(XmlReader reader, XmlReaderSettings settings)
 {
     if (AsyncUtil.IsAsyncEnabled)
     {
         return(XmlReaderAsync.Create(reader, settings));
     }
     else
     {
         return(XmlReader.Create(reader, settings));
     }
 }
Пример #6
0
 public static XmlReader Create(TextReader input, XmlReaderSettings settings, XmlParserContext inputContext)
 {
     if (AsyncUtil.IsAsyncEnabled)
     {
         return(XmlReaderAsync.Create(input, settings, inputContext));
     }
     else
     {
         return(XmlReader.Create(input, settings, inputContext));
     }
 }