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

◆ Close() [1/2]

override void System.Xml.XmlEncodedRawTextWriter.Close ( )
inlinevirtualinherited

Reimplemented from System.Xml.XmlWriter.

Definition at line 576 of file XmlEncodedRawTextWriter.cs.

577 {
578 try
579 {
580 FlushBuffer();
581 FlushEncoder();
582 }
583 finally
584 {
585 _writeToNull = true;
586 if (_stream != null)
587 {
588 try
589 {
590 _stream.Flush();
591 }
592 finally
593 {
594 try
595 {
596 if (_closeOutput)
597 {
599 }
600 }
601 finally
602 {
603 _stream = null;
604 }
605 }
606 }
607 else if (_writer != null)
608 {
609 try
610 {
611 _writer.Flush();
612 }
613 finally
614 {
615 try
616 {
617 if (_closeOutput)
618 {
620 }
621 }
622 finally
623 {
624 _writer = null;
625 }
626 }
627 }
628 }
629 }
void Dispose()
Definition Stream.cs:639
virtual void Dispose(bool disposing)
virtual void Flush()

References System.Xml.XmlEncodedRawTextWriter._closeOutput, System.Xml.XmlEncodedRawTextWriter._stream, System.Xml.XmlEncodedRawTextWriter._writer, System.Xml.XmlEncodedRawTextWriter._writeToNull, System.IO.Stream.Dispose(), System.IO.TextWriter.Dispose(), System.IO.Stream.Flush(), System.IO.TextWriter.Flush(), System.Xml.XmlEncodedRawTextWriter.FlushBuffer(), and System.Xml.XmlEncodedRawTextWriter.FlushEncoder().