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

◆ WriteEndElementAsync() [2/2]

override Task System.Xml.XmlEncodedRawTextWriter.WriteEndElementAsync ( string prefix,
string localName,
string ns )
inlinepackagevirtual

Reimplemented from System.Xml.XmlRawWriter.

Reimplemented in System.Xml.XmlEncodedRawTextWriterIndent.

Definition at line 1753 of file XmlEncodedRawTextWriter.cs.

1754 {
1757 {
1759 }
1760 if (_contentPos != _bufPos)
1761 {
1762 _bufChars[_bufPos++] = '<';
1763 _bufChars[_bufPos++] = '/';
1764 if (prefix != null && prefix.Length != 0)
1765 {
1766 return RawTextAsync(prefix, ":", localName, ">");
1767 }
1768 return RawTextAsync(localName, ">");
1769 }
1770 _bufPos--;
1771 _bufChars[_bufPos++] = ' ';
1772 _bufChars[_bufPos++] = '/';
1773 _bufChars[_bufPos++] = '>';
1774 return Task.CompletedTask;
1775 }
static Task CompletedTask
Definition Task.cs:1120

References System.Xml.XmlEncodedRawTextWriter._bufChars, System.Xml.XmlEncodedRawTextWriter._bufPos, System.Xml.XmlEncodedRawTextWriter._contentPos, System.Xml.XmlEncodedRawTextWriter._inTextContent, System.Xml.XmlEncodedRawTextWriter._trackTextContent, System.Xml.XmlEncodedRawTextWriter.ChangeTextContentMark(), System.Xml.XmlEncodedRawTextWriter.CheckAsyncCall(), System.Threading.Tasks.Task< TResult >.CompletedTask, System.prefix, System.Xml.XmlEncodedRawTextWriter.RawTextAsync(), and System.value.