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

◆ ReadContentFromAsync() [1/2]

async Task System.Xml.Linq.XContainer.ReadContentFromAsync ( XmlReader r,
CancellationToken cancellationToken )
inlinepackageinherited

Definition at line 1229 of file XContainer.cs.

1230 {
1231 if (r.ReadState != ReadState.Interactive)
1232 {
1234 }
1235 ContentReader cr = new ContentReader(this);
1236 bool flag;
1237 do
1238 {
1239 cancellationToken.ThrowIfCancellationRequested();
1240 flag = await cr.ReadContentFromAsync(this, r).ConfigureAwait(continueOnCapturedContext: false);
1241 if (flag)
1242 {
1243 flag = await r.ReadAsync().ConfigureAwait(continueOnCapturedContext: false);
1244 }
1245 }
1246 while (flag);
1247 }
static string InvalidOperation_ExpectedInteractive
Definition SR.cs:46
Definition SR.cs:7

References System.cancellationToken, and System.SR.InvalidOperation_ExpectedInteractive.

Referenced by System.Xml.Linq.XContainer.ReadContentFromAsync(), and System.Xml.Linq.XElement.ReadElementFromAsync().