Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ XmlTextReaderImpl() [12/20]

System.Xml.XmlTextReaderImpl.XmlTextReaderImpl ( Stream xmlFragment,
XmlNodeType fragType,
XmlParserContext context )
inlinepackage

Definition at line 1611 of file XmlTextReaderImpl.cs.

1612 : this((context != null && context.NameTable != null) ? context.NameTable : new NameTable())
1613 {
1614 Encoding encoding = context?.Encoding;
1615 if (context == null || context.BaseURI == null || context.BaseURI.Length == 0)
1616 {
1617 InitStreamInput(xmlFragment, encoding);
1618 }
1619 else
1620 {
1621 InitStreamInput(GetTempResolver().ResolveUri(null, context.BaseURI), xmlFragment, encoding);
1622 }
1626 }
XmlNameTable NameTable
Definition XmlReader.cs:116
void InitStreamInput(Stream stream, Encoding encoding)
void InitFragmentReader(XmlNodeType fragmentType, XmlParserContext parserContext, bool allowXmlDeclFragment)

References System.Xml.XmlTextReaderImpl._ps, System.Xml.XmlTextReaderImpl._reportedBaseUri, System.Xml.XmlTextReaderImpl._reportedEncoding, System.Xml.XmlParserContext.BaseURI, System.Xml.XmlTextReaderImpl.ParsingState.baseUriStr, System.Xml.XmlParserContext.Encoding, System.Xml.XmlTextReaderImpl.ParsingState.encoding, System.Xml.XmlTextReaderImpl.GetTempResolver(), System.Xml.XmlTextReaderImpl.InitFragmentReader(), and System.Xml.XmlTextReaderImpl.InitStreamInput().