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

◆ DisposeAsyncCore() [1/2]

override async ValueTask System.Xml.XmlEncodedRawTextWriter.DisposeAsyncCore ( )
inlineprotectedvirtualinherited

Reimplemented from System.Xml.XmlWriter.

Definition at line 1640 of file XmlEncodedRawTextWriter.cs.

1641 {
1642 try
1643 {
1645 }
1646 finally
1647 {
1648 _writeToNull = true;
1649 if (_stream != null)
1650 {
1651 try
1652 {
1654 }
1655 finally
1656 {
1657 try
1658 {
1659 if (_closeOutput)
1660 {
1662 }
1663 }
1664 finally
1665 {
1666 _stream = null;
1667 }
1668 }
1669 }
1670 else if (_writer != null)
1671 {
1672 try
1673 {
1675 }
1676 finally
1677 {
1678 try
1679 {
1680 if (_closeOutput)
1681 {
1683 }
1684 }
1685 finally
1686 {
1687 _writer = null;
1688 }
1689 }
1690 }
1691 }
1692 }
Task FlushAsync()
Definition Stream.cs:669
virtual ValueTask DisposeAsync()
Definition Stream.cs:654
virtual Task FlushAsync()
virtual ValueTask DisposeAsync()
new ConfiguredTaskAwaitable< TResult > ConfigureAwait(bool continueOnCapturedContext)
Definition Task.cs:226
ConfiguredValueTaskAwaitable ConfigureAwait(bool continueOnCapturedContext)
Definition ValueTask.cs:312

References System.Xml.XmlEncodedRawTextWriter._closeOutput, System.Xml.XmlEncodedRawTextWriter._stream, System.Xml.XmlEncodedRawTextWriter._writer, System.Xml.XmlEncodedRawTextWriter._writeToNull, System.Threading.Tasks.Task< TResult >.ConfigureAwait(), System.Threading.Tasks.ValueTask< TResult >.ConfigureAwait(), System.Xml.Dictionary, System.IO.Stream.DisposeAsync(), System.IO.TextWriter.DisposeAsync(), System.IO.Stream.FlushAsync(), System.IO.TextWriter.FlushAsync(), and System.Xml.XmlEncodedRawTextWriter.FlushBufferAsync().