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

◆ WriteToAsync()

override Task System.Xml.Linq.XComment.WriteToAsync ( XmlWriter writer,
CancellationToken cancellationToken )
inline

Definition at line 66 of file XComment.cs.

67 {
68 if (writer == null)
69 {
70 throw new ArgumentNullException("writer");
71 }
72 if (cancellationToken.IsCancellationRequested)
73 {
75 }
76 return writer.WriteCommentAsync(value);
77 }
static Task FromCanceled(CancellationToken cancellationToken)
Definition Task.cs:3363

References System.cancellationToken, System.Threading.Tasks.Task< TResult >.FromCanceled(), System.Xml.Linq.XComment.value, and System.writer.