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

◆ FinishAsync()

async Task System.Xml.ReadContentAsBinaryHelper.FinishAsync ( )
inlinepackage

Definition at line 603 of file ReadContentAsBinaryHelper.cs.

604 {
605 if (_state != 0)
606 {
608 {
609 }
610 if (_state == State.InReadElementContent)
611 {
612 if (_reader.NodeType != XmlNodeType.EndElement)
613 {
614 throw new XmlException(System.SR.Xml_InvalidNodeType, _reader.NodeType.ToString(), _reader as IXmlLineInfo);
615 }
617 }
618 }
619 Reset();
620 }
static string Xml_InvalidNodeType
Definition SR.cs:88
Definition SR.cs:7
new ConfiguredTaskAwaitable< TResult > ConfigureAwait(bool continueOnCapturedContext)
Definition Task.cs:226
async Task< bool > MoveToNextContentNodeAsync(bool moveIfOnContentNode)
virtual Task< bool > ReadAsync()
XmlNodeType NodeType
Definition XmlReader.cs:62

References System.Xml.ReadContentAsBinaryHelper._reader, System.Xml.ReadContentAsBinaryHelper._state, System.Threading.Tasks.Task< TResult >.ConfigureAwait(), System.Xml.Dictionary, System.Xml.ReadContentAsBinaryHelper.MoveToNextContentNodeAsync(), System.Xml.XmlReader.NodeType, System.Xml.XmlReader.ReadAsync(), System.Xml.ReadContentAsBinaryHelper.Reset(), System.SR.Xml_InvalidNodeType, and System.Xml.XmlException.

Referenced by System.Xml.XmlCharCheckingReader.FinishReadBinaryAsync(), System.Xml.XmlValidatingReaderImpl.ReadAsync(), and System.Xml.XsdValidatingReader.ReadAsync().