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

◆ WriteSurrogateCharEntityAsync()

override async Task System.Xml.XmlWellFormedWriter.WriteSurrogateCharEntityAsync ( char lowChar,
char highChar )
inlinevirtual

Reimplemented from System.Xml.XmlWriter.

Definition at line 3841 of file XmlWellFormedWriter.cs.

3842 {
3843 _ = 1;
3844 try
3845 {
3846 if (!char.IsSurrogatePair(highChar, lowChar))
3847 {
3848 throw XmlConvert.CreateInvalidSurrogatePairException(lowChar, highChar);
3849 }
3851 if (SaveAttrValue)
3852 {
3854 }
3855 else
3856 {
3858 }
3859 }
3860 catch
3861 {
3862 _currentState = State.Error;
3863 throw;
3864 }
3865 }
new ConfiguredTaskAwaitable< TResult > ConfigureAwait(bool continueOnCapturedContext)
Definition Task.cs:226
void WriteSurrogateCharEntity(char lowChar, char highChar)
virtual Task WriteSurrogateCharEntityAsync(char lowChar, char highChar)
Definition XmlWriter.cs:673

References System.Xml.XmlWellFormedWriter._attrValueCache, System.Xml.XmlWellFormedWriter._currentState, System.Xml.XmlWellFormedWriter._writer, System.Xml.XmlWellFormedWriter.AdvanceStateAsync(), System.Threading.Tasks.Task< TResult >.ConfigureAwait(), System.Xml.XmlConvert.CreateInvalidSurrogatePairException(), System.Xml.XmlWellFormedWriter.SaveAttrValue, System.Xml.XmlWellFormedWriter.AttributeValueCache.WriteSurrogateCharEntity(), and System.Xml.XmlWriter.WriteSurrogateCharEntityAsync().