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

◆ WriteSurrogateCharEntity()

void System.Xml.XmlTextEncoder.WriteSurrogateCharEntity ( char lowChar,
char highChar )
inlinepackage

Definition at line 193 of file XmlTextEncoder.cs.

194 {
195 if (!XmlCharType.IsLowSurrogate(lowChar) || !XmlCharType.IsHighSurrogate(highChar))
196 {
197 throw XmlConvert.CreateInvalidSurrogatePairException(lowChar, highChar);
198 }
199 int num = XmlCharType.CombineSurrogateChar(lowChar, highChar);
200 if (_cacheAttrValue)
201 {
204 }
205 _textWriter.Write("&#x");
207 _textWriter.Write(';');
208 }
virtual void Write(char value)
StringBuilder Append(char value, int repeatCount)
readonly TextWriter _textWriter

References System.Xml.XmlTextEncoder._attrValue, System.Xml.XmlTextEncoder._cacheAttrValue, System.Xml.XmlTextEncoder._textWriter, System.Text.StringBuilder.Append(), System.Xml.XmlCharType.CombineSurrogateChar(), System.Xml.XmlConvert.CreateInvalidSurrogatePairException(), System.Xml.Dictionary, System.Globalization.NumberFormatInfo.InvariantInfo, System.Xml.XmlCharType.IsHighSurrogate(), System.Xml.XmlCharType.IsLowSurrogate(), and System.IO.TextWriter.Write().