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

◆ SetupReadElementContentAsXxxAsync()

async Task< bool > System.Xml.XmlReader.SetupReadElementContentAsXxxAsync ( string methodName)
inlineprivateinherited

Definition at line 1828 of file XmlReader.cs.

1829 {
1830 if (NodeType != XmlNodeType.Element)
1831 {
1833 }
1836 if (isEmptyElement)
1837 {
1838 return false;
1839 }
1840 switch (NodeType)
1841 {
1842 case XmlNodeType.EndElement:
1844 return false;
1845 case XmlNodeType.Element:
1846 throw new XmlException(System.SR.Xml_MixedReadElementContentAs, string.Empty, this as IXmlLineInfo);
1847 default:
1848 return true;
1849 }
1850 }
static string Xml_MixedReadElementContentAs
Definition SR.cs:180
Definition SR.cs:7
new ConfiguredTaskAwaitable< TResult > ConfigureAwait(bool continueOnCapturedContext)
Definition Task.cs:226
Exception CreateReadElementContentAsException(string methodName)
virtual Task< bool > ReadAsync()
XmlNodeType NodeType
Definition XmlReader.cs:62

References System.Threading.Tasks.Task< TResult >.ConfigureAwait(), System.Xml.XmlReader.CreateReadElementContentAsException(), System.Xml.Dictionary, System.Xml.XmlReader.IsEmptyElement, System.Xml.XmlReader.NodeType, System.Xml.XmlReader.ReadAsync(), System.SR.Xml_MixedReadElementContentAs, and System.Xml.XmlException.

Referenced by System.Xml.XmlReader.ReadElementContentAsAsync(), System.Xml.XmlReader.ReadElementContentAsObjectAsync(), and System.Xml.XmlReader.ReadElementContentAsStringAsync().