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

◆ WriteCDataAsync() [1/2]

override async Task System.Xml.XmlCharCheckingWriter.WriteCDataAsync ( string text)
inline

Definition at line 572 of file XmlCharCheckingWriter.cs.

573 {
574 if (text != null)
575 {
576 if (_checkValues)
577 {
579 }
581 {
583 }
584 while (true)
585 {
586 int num;
587 int i = (num = text.IndexOf("]]>", StringComparison.Ordinal));
588 if (num < 0)
589 {
590 break;
591 }
592 await writer.WriteCDataAsync(text.Substring(0, i + 2)).ConfigureAwait(continueOnCapturedContext: false);
593 text = text.Substring(i + 2);
594 }
595 }
597 }
new ConfiguredTaskAwaitable< TResult > ConfigureAwait(bool continueOnCapturedContext)
Definition Task.cs:226
virtual Task WriteCDataAsync(string? text)
Definition XmlWriter.cs:638

References System.Xml.XmlCharCheckingWriter._checkValues, System.Xml.XmlCharCheckingWriter._replaceNewLines, System.Xml.XmlCharCheckingWriter.CheckCharacters(), System.Threading.Tasks.Task< TResult >.ConfigureAwait(), System.Xml.Dictionary, System.Xml.XmlCharCheckingWriter.ReplaceNewLines(), System.text, System.Xml.XmlWriter.WriteCDataAsync(), and System.Xml.XmlWrappingWriter.writer.