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

◆ CreateWrappedWriter()

void System.Xml.XmlAutoDetectWriter.CreateWrappedWriter ( XmlOutputMethod outMethod)
inlineprivate

Definition at line 377 of file XmlAutoDetectWriter.cs.

378 {
381 if (outMethod == XmlOutputMethod.Html && _writerSettings.IndentInternal == TriState.Unknown)
382 {
384 }
386 if (_textWriter != null)
387 {
388 _wrapped = ((XmlWellFormedWriter)XmlWriter.Create(_textWriter, _writerSettings)).RawWriter;
389 }
390 else
391 {
392 _wrapped = ((XmlWellFormedWriter)XmlWriter.Create(_strm, _writerSettings)).RawWriter;
393 }
396 if (_onRemove != null)
397 {
399 }
400 }
readonly XmlWriterSettings _writerSettings
readonly XmlEventCache _eventCache
void EventsToWriter(XmlWriter writer)

References System.Xml.XmlAutoDetectWriter._eventCache, System.Xml.XmlAutoDetectWriter._onRemove, System.Xml.XmlAutoDetectWriter._strm, System.Xml.XmlAutoDetectWriter._textWriter, System.Xml.XmlAutoDetectWriter._wrapped, System.Xml.XmlAutoDetectWriter._writerSettings, System.Xml.XmlWriter.Create(), System.Xml.Dictionary, System.Xml.XmlEventCache.EndEvents(), System.Xml.XmlEventCache.EventsToWriter(), and System.Xml.XmlWriterSettings.IndentInternal.

Referenced by System.Xml.XmlAutoDetectWriter.EnsureWrappedWriter(), System.Xml.XmlAutoDetectWriter.TextBlockCreatesWriter(), and System.Xml.XmlAutoDetectWriter.WriteStartElement().