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

◆ InitOnElementAsync()

async Task< bool > System.Xml.ReadContentAsBinaryHelper.InitOnElementAsync ( )
inlineprivate

Definition at line 633 of file ReadContentAsBinaryHelper.cs.

634 {
637 if (isEmpty)
638 {
639 return false;
640 }
642 {
643 if (_reader.NodeType != XmlNodeType.EndElement)
644 {
645 throw new XmlException(System.SR.Xml_InvalidNodeType, _reader.NodeType.ToString(), _reader as IXmlLineInfo);
646 }
648 return false;
649 }
650 _state = State.InReadElementContent;
651 _isEnd = false;
652 return true;
653 }
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._isEnd, System.Xml.ReadContentAsBinaryHelper._reader, System.Xml.ReadContentAsBinaryHelper._state, System.Threading.Tasks.Task< TResult >.ConfigureAwait(), System.Xml.Dictionary, System.Xml.XmlReader.IsEmptyElement, System.Xml.ReadContentAsBinaryHelper.MoveToNextContentNodeAsync(), System.Xml.XmlReader.NodeType, System.Xml.XmlReader.ReadAsync(), System.SR.Xml_InvalidNodeType, and System.Xml.XmlException.

Referenced by System.Xml.ReadContentAsBinaryHelper.ReadElementContentAsBase64Async(), and System.Xml.ReadContentAsBinaryHelper.ReadElementContentAsBinHexAsync().