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

◆ WriteCharEntityAsync()

override async Task System.Xml.XmlEncodedRawTextWriter.WriteCharEntityAsync ( char ch)
inlinevirtual

Reimplemented from System.Xml.XmlWriter.

Reimplemented in System.Xml.XmlEncodedRawTextWriterIndent.

Definition at line 1961 of file XmlEncodedRawTextWriter.cs.

1962 {
1964 int num = ch;
1965 string text = num.ToString("X", NumberFormatInfo.InvariantInfo);
1966 if (_checkCharacters && !XmlCharType.IsCharData(ch))
1967 {
1968 throw XmlConvert.CreateInvalidCharException(ch, '\0');
1969 }
1971 {
1973 }
1974 _bufChars[_bufPos++] = '&';
1975 _bufChars[_bufPos++] = '#';
1976 _bufChars[_bufPos++] = 'x';
1978 _bufChars[_bufPos++] = ';';
1979 if (_bufPos > _bufLen)
1980 {
1982 }
1983 _textPos = _bufPos;
1984 }
new ConfiguredTaskAwaitable< TResult > ConfigureAwait(bool continueOnCapturedContext)
Definition Task.cs:226

References System.Xml.XmlEncodedRawTextWriter._bufChars, System.Xml.XmlEncodedRawTextWriter._bufLen, System.Xml.XmlEncodedRawTextWriter._bufPos, System.Xml.XmlEncodedRawTextWriter._checkCharacters, System.Xml.XmlEncodedRawTextWriter._inTextContent, System.Xml.XmlEncodedRawTextWriter._textPos, System.Xml.XmlEncodedRawTextWriter._trackTextContent, System.ch, System.Xml.XmlEncodedRawTextWriter.ChangeTextContentMark(), System.Xml.XmlEncodedRawTextWriter.CheckAsyncCall(), System.Threading.Tasks.Task< TResult >.ConfigureAwait(), System.Xml.XmlConvert.CreateInvalidCharException(), System.Xml.Dictionary, System.Xml.XmlEncodedRawTextWriter.FlushBufferAsync(), System.Globalization.NumberFormatInfo.InvariantInfo, System.Xml.XmlCharType.IsCharData(), System.Xml.XmlEncodedRawTextWriter.RawTextAsync(), System.text, and System.value.