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

◆ XmlTextReaderImpl() [18/20]

System.Xml.XmlTextReaderImpl.XmlTextReaderImpl ( Stream stream,
byte[] bytes,
int byteCount,
XmlReaderSettings settings,
Uri baseUri,
string baseUriStr,
XmlParserContext context,
bool closeInput )
inlinepackage

Definition at line 1748 of file XmlTextReaderImpl.cs.

1749 : this(settings.GetXmlResolver(), settings, context)
1750 {
1751 if (context != null && context.BaseURI != null && context.BaseURI.Length > 0 && !UriEqual(baseUri, baseUriStr, context.BaseURI, settings.GetXmlResolver()))
1752 {
1753 if (baseUriStr.Length > 0)
1754 {
1756 }
1757 baseUriStr = context.BaseURI;
1758 }
1759 _reportedBaseUri = baseUriStr ?? string.Empty;
1761 _laterInitParam = new LaterInitParam();
1767 _laterInitParam.initType = InitInputType.Stream;
1768 if (!settings.Async)
1769 {
1771 }
1772 else
1773 {
1775 }
1776 }
static string Xml_DoubleBaseUri
Definition SR.cs:192
Definition SR.cs:7
bool UriEqual(Uri uri1, string uri1Str, string uri2Str, XmlResolver resolver)
void Throw(int pos, string res, string arg)

References System.Xml.XmlTextReaderImpl._closeInput, System.Xml.XmlTextReaderImpl._laterInitParam, System.Xml.XmlTextReaderImpl._reportedBaseUri, System.Xml.XmlReaderSettings.Async, System.Xml.XmlParserContext.BaseURI, System.byteCount, System.bytes, System.Xml.Dictionary, System.Xml.XmlTextReaderImpl.FinishInitStream(), System.Xml.XmlReaderSettings.GetXmlResolver(), System.stream, System.Xml.XmlTextReaderImpl.Throw(), System.Xml.XmlTextReaderImpl.UriEqual(), and System.SR.Xml_DoubleBaseUri.