System.Xml.XmlTextReaderImpl.XmlTextReaderImpl C# (CSharp) Method

XmlTextReaderImpl() private method

private XmlTextReaderImpl ( Stream xmlFragment, XmlNodeType fragType, XmlParserContext context ) : System.IO
xmlFragment Stream
fragType XmlNodeType
context XmlParserContext
return System.IO
        internal XmlTextReaderImpl(Stream xmlFragment, XmlNodeType fragType, XmlParserContext context)
            : this((context != null && context.NameTable != null) ? context.NameTable : new NameTable())
        {
            Encoding enc = (context != null) ? context.Encoding : null;
            if (context == null || context.BaseURI == null || context.BaseURI.Length == 0)
            {
                InitStreamInput(xmlFragment, enc);
            }
            else
            {
                // It is important to have valid resolver here to resolve the Xml url file path. 
                // it is safe as this resolver will not be used to resolve DTD url's
                InitStreamInput(GetTempResolver().ResolveUri(null, context.BaseURI), xmlFragment, enc);
            }
            InitFragmentReader(fragType, context, false);

            _reportedBaseUri = _ps.baseUriStr;
            _reportedEncoding = _ps.encoding;
        }

Same methods

XmlTextReaderImpl::XmlTextReaderImpl ( ) : System.IO
XmlTextReaderImpl::XmlTextReaderImpl ( Stream input ) : System.IO
XmlTextReaderImpl::XmlTextReaderImpl ( Stream input, XmlNameTable nt ) : System.IO
XmlTextReaderImpl::XmlTextReaderImpl ( Stream stream, byte bytes, int byteCount, XmlReaderSettings settings, Uri baseUri, string baseUriStr, XmlParserContext context, bool closeInput ) : System.IO
XmlTextReaderImpl::XmlTextReaderImpl ( TextReader input ) : System.IO
XmlTextReaderImpl::XmlTextReaderImpl ( TextReader input, XmlNameTable nt ) : System.IO
XmlTextReaderImpl::XmlTextReaderImpl ( TextReader input, XmlReaderSettings settings, string baseUriStr, XmlParserContext context ) : System.IO
XmlTextReaderImpl::XmlTextReaderImpl ( XmlNameTable nt ) : System.IO
XmlTextReaderImpl::XmlTextReaderImpl ( XmlResolver resolver, XmlReaderSettings settings, XmlParserContext context ) : System.IO
XmlTextReaderImpl::XmlTextReaderImpl ( string url ) : System.IO
XmlTextReaderImpl::XmlTextReaderImpl ( string url, Stream input ) : System.IO
XmlTextReaderImpl::XmlTextReaderImpl ( string url, Stream input, XmlNameTable nt ) : System.IO
XmlTextReaderImpl::XmlTextReaderImpl ( string url, TextReader input ) : System.IO
XmlTextReaderImpl::XmlTextReaderImpl ( string url, TextReader input, XmlNameTable nt ) : System.IO
XmlTextReaderImpl::XmlTextReaderImpl ( string url, XmlNameTable nt ) : System.IO
XmlTextReaderImpl::XmlTextReaderImpl ( string xmlFragment, XmlNodeType fragType, XmlParserContext context ) : System.IO
XmlTextReaderImpl::XmlTextReaderImpl ( string xmlFragment, XmlParserContext context ) : System.IO
XmlTextReaderImpl::XmlTextReaderImpl ( string xmlFragment, XmlParserContext context, XmlReaderSettings settings ) : System.IO
XmlTextReaderImpl::XmlTextReaderImpl ( string uriStr, XmlReaderSettings settings, XmlParserContext context, XmlResolver uriResolver ) : System.IO
XmlTextReaderImpl