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

◆ InternalReadContentAsStringAsync()

async Task< string > System.Xml.XmlReader.InternalReadContentAsStringAsync ( )
inlinepackageinherited

Definition at line 1779 of file XmlReader.cs.

1780 {
1781 string value = string.Empty;
1782 StringBuilder sb = null;
1783 bool flag;
1784 do
1785 {
1786 switch (NodeType)
1787 {
1788 case XmlNodeType.Attribute:
1789 return Value;
1790 case XmlNodeType.Text:
1791 case XmlNodeType.CDATA:
1792 case XmlNodeType.Whitespace:
1793 case XmlNodeType.SignificantWhitespace:
1794 if (value.Length == 0)
1795 {
1797 }
1798 else
1799 {
1800 if (sb == null)
1801 {
1802 sb = new StringBuilder();
1803 sb.Append(value);
1804 }
1807 }
1808 goto case XmlNodeType.ProcessingInstruction;
1809 case XmlNodeType.EntityReference:
1810 if (!CanResolveEntity)
1811 {
1812 break;
1813 }
1814 ResolveEntity();
1815 goto case XmlNodeType.ProcessingInstruction;
1816 case XmlNodeType.ProcessingInstruction:
1817 case XmlNodeType.Comment:
1818 case XmlNodeType.EndEntity:
1820 continue;
1821 }
1822 break;
1823 }
1824 while (flag);
1825 return (sb == null) ? value : sb.ToString();
1826 }
override string ToString()
StringBuilder Append(char value, int repeatCount)
new ConfiguredTaskAwaitable< TResult > ConfigureAwait(bool continueOnCapturedContext)
Definition Task.cs:226
virtual bool CanResolveEntity
Definition XmlReader.cs:118
virtual Task< bool > ReadAsync()
XmlNodeType NodeType
Definition XmlReader.cs:62
virtual Task< string > GetValueAsync()

References System.Text.StringBuilder.Append(), System.Xml.XmlReader.AttributeCount, System.Xml.XmlReader.CanResolveEntity, System.Threading.Tasks.Task< TResult >.ConfigureAwait(), System.Xml.Dictionary, System.Xml.XmlReader.GetValueAsync(), System.Xml.XmlReader.NodeType, System.Xml.XmlReader.ReadAsync(), System.Xml.XmlReader.ReadAttributeValue(), System.Xml.XmlReader.ResolveEntity(), System.Text.StringBuilder.ToString(), System.value, and System.Xml.XmlReader.Value.

Referenced by System.Xml.XsdValidatingReader.InternalReadContentAsObjectTupleAsync(), System.Xml.XmlReader.ReadContentAsAsync(), System.Xml.XmlReader.ReadContentAsObjectAsync(), and System.Xml.XmlReader.ReadContentAsStringAsync().