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

◆ DisposeAsyncCore()

override async ValueTask System.Xml.XmlWellFormedWriter.DisposeAsyncCore ( )
inlineprotectedvirtual

Reimplemented from System.Xml.XmlWriter.

Definition at line 4363 of file XmlWellFormedWriter.cs.

4364 {
4365 if (_currentState == State.Closed)
4366 {
4367 return;
4368 }
4369 try
4370 {
4372 {
4373 while (_currentState != State.Error && _elemTop > 0)
4374 {
4376 }
4377 }
4378 else if (_currentState != State.Error && _elemTop > 0)
4379 {
4380 try
4381 {
4383 }
4384 catch
4385 {
4386 _currentState = State.Error;
4387 throw;
4388 }
4389 }
4390 if (InBase64 && _rawWriter != null)
4391 {
4393 }
4395 }
4396 finally
4397 {
4398 try
4399 {
4400 if (_rawWriter == null)
4401 {
4403 }
4404 else
4405 {
4407 }
4408 }
4409 finally
4410 {
4411 _currentState = State.Closed;
4412 }
4413 }
4414 }
new ConfiguredTaskAwaitable< TResult > ConfigureAwait(bool continueOnCapturedContext)
Definition Task.cs:226
virtual ValueTask DisposeAsyncCore(WriteState currentState)
virtual Task WriteEndBase64Async()
virtual Task FlushAsync()
Definition XmlWriter.cs:703
async ValueTask DisposeAsync()

References System.Xml.XmlWellFormedWriter._currentState, System.Xml.XmlWellFormedWriter._elemTop, System.Xml.XmlWellFormedWriter._rawWriter, System.Xml.XmlWellFormedWriter._writeEndDocumentOnClose, System.Xml.XmlWellFormedWriter._writer, System.Xml.XmlWellFormedWriter.AdvanceStateAsync(), System.Threading.Tasks.Task< TResult >.ConfigureAwait(), System.Xml.XmlWriter.DisposeAsync(), System.Xml.XmlRawWriter.DisposeAsyncCore(), System.Xml.XmlWriter.FlushAsync(), System.Xml.XmlWellFormedWriter.InBase64, System.Xml.XmlRawWriter.WriteEndBase64Async(), and System.Xml.XmlWellFormedWriter.WriteEndElementAsync().