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

◆ ReadOuterXmlAsync()

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

Reimplemented in System.Xml.XmlAsyncCheckReader.

Definition at line 1728 of file XmlReader.cs.

1729 {
1730 if (ReadState != ReadState.Interactive)
1731 {
1732 return string.Empty;
1733 }
1734 if (NodeType != XmlNodeType.Attribute && NodeType != XmlNodeType.Element)
1735 {
1737 return string.Empty;
1738 }
1741 try
1742 {
1743 if (NodeType == XmlNodeType.Attribute)
1744 {
1745 xmlWriter.WriteStartAttribute(Prefix, LocalName, NamespaceURI);
1747 xmlWriter.WriteEndAttribute();
1748 }
1749 else
1750 {
1751 xmlWriter.WriteNode(this, defattr: false);
1752 }
1753 }
1754 finally
1755 {
1756 xmlWriter.Close();
1757 }
1758 return stringWriter.ToString();
1759 }
static CultureInfo InvariantCulture
new ConfiguredTaskAwaitable< TResult > ConfigureAwait(bool continueOnCapturedContext)
Definition Task.cs:226
XmlWriter CreateWriterForInnerOuterXml(StringWriter sw)
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.LocalName, System.Xml.XmlReader.NamespaceURI, System.Xml.XmlReader.NodeType, System.Xml.XmlReader.Prefix, System.Xml.XmlReader.ReadAsync(), and System.Xml.XmlReader.WriteAttributeValue().

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