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

XmlTextReaderImpl() private method

private XmlTextReaderImpl ( TextReader input, XmlReaderSettings settings, string baseUriStr, XmlParserContext context ) : System.IO
input TextReader
settings XmlReaderSettings
baseUriStr string
context XmlParserContext
return System.IO
        internal XmlTextReaderImpl(TextReader input, XmlReaderSettings settings, string baseUriStr, XmlParserContext context)
            : this(settings.GetXmlResolver(), settings, context)
        {
            // get BaseUri from XmlParserContext
            if (context != null)
            {
                Debug.Assert(baseUriStr == string.Empty, "BaseURI can come either from XmlParserContext or from the constructor argument, not from both");
                if (context.BaseURI != null)
                {
                    baseUriStr = context.BaseURI;
                }
            }

            _reportedBaseUri = baseUriStr;
            _closeInput = settings.CloseInput;
            _laterInitParam = new LaterInitParam();
            _laterInitParam.inputTextReader = input;
            _laterInitParam.inputContext = context;
            _laterInitParam.initType = InitInputType.TextReader;
            if (!settings.Async)
            {
                //if not set Async flag, finish the init in create stage.
                FinishInitTextReader();
            }
            else
            {
                _laterInitParam.useAsync = true;
            }
        }

Same methods

XmlTextReaderImpl::XmlTextReaderImpl ( ) : System.IO
XmlTextReaderImpl::XmlTextReaderImpl ( Stream input ) : System.IO
XmlTextReaderImpl::XmlTextReaderImpl ( Stream input, XmlNameTable nt ) : System.IO
XmlTextReaderImpl::XmlTextReaderImpl ( Stream xmlFragment, XmlNodeType fragType, XmlParserContext context ) : 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 ( 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