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

◆ ReadContentFromAsync() [2/2]

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

Definition at line 1249 of file XContainer.cs.

1250 {
1251 if ((o & (LoadOptions.SetBaseUri | LoadOptions.SetLineInfo)) == 0)
1252 {
1254 return;
1255 }
1256 if (r.ReadState != ReadState.Interactive)
1257 {
1259 }
1260 ContentReader cr = new ContentReader(this, r, o);
1261 bool flag;
1262 do
1263 {
1264 cancellationToken.ThrowIfCancellationRequested();
1265 flag = await cr.ReadContentFromAsync(this, r, o).ConfigureAwait(continueOnCapturedContext: false);
1266 if (flag)
1267 {
1268 flag = await r.ReadAsync().ConfigureAwait(continueOnCapturedContext: false);
1269 }
1270 }
1271 while (flag);
1272 }
static string InvalidOperation_ExpectedInteractive
Definition SR.cs:46
Definition SR.cs:7
async Task ReadContentFromAsync(XmlReader r, CancellationToken cancellationToken)

References System.cancellationToken, System.SR.InvalidOperation_ExpectedInteractive, and System.Xml.Linq.XContainer.ReadContentFromAsync().