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

◆ ReadInnerXmlAsync()

virtual async Task< string > System.Xml.XmlReader.ReadInnerXmlAsync ( )
inlinevirtualinherited

Reimplemented in System.Xml.XmlAsyncCheckReader.

Definition at line 1640 of file XmlReader.cs.

1641 {
1642 if (ReadState != ReadState.Interactive)
1643 {
1644 return string.Empty;
1645 }
1646 if (NodeType != XmlNodeType.Attribute && NodeType != XmlNodeType.Element)
1647 {
1649 return string.Empty;
1650 }
1652 XmlWriter xtw = CreateWriterForInnerOuterXml(sw);
1653 try
1654 {
1655 if (NodeType == XmlNodeType.Attribute)
1656 {
1657 ((XmlTextWriter)xtw).QuoteChar = QuoteChar;
1659 }
1660 if (NodeType == XmlNodeType.Element)
1661 {
1663 }
1664 }
1665 finally
1666 {
1667 xtw.Close();
1668 }
1669 return sw.ToString();
1670 }
static CultureInfo InvariantCulture
new ConfiguredTaskAwaitable< TResult > ConfigureAwait(bool continueOnCapturedContext)
Definition Task.cs:226
XmlWriter CreateWriterForInnerOuterXml(StringWriter sw)
async Task WriteNodeAsync(XmlWriter xtw, bool defattr)
virtual char QuoteChar
Definition XmlReader.cs:94
virtual Task< bool > ReadAsync()
void WriteAttributeValue(XmlWriter xtw)
XmlNodeType NodeType
Definition XmlReader.cs:62

References System.Threading.Tasks.Task< TResult >.ConfigureAwait(), System.Xml.XmlReader.CreateWriterForInnerOuterXml(), System.Xml.Dictionary, System.Globalization.CultureInfo.InvariantCulture, System.Xml.XmlReader.NodeType, System.Xml.XmlReader.QuoteChar, System.Xml.XmlReader.ReadAsync(), System.Xml.XmlReader.WriteAttributeValue(), and System.Xml.XmlReader.WriteNodeAsync().

Referenced by System.Xml.XmlAsyncCheckReader.ReadInnerXmlAsync().