terraria-cpp2il-methodrecon v1.4.4.9
Terraria mobile dump, with reconstructed method body. Dump with CallAnalysis: https://infinitynichto.github.io/terraria-cpp2il
Loading...
Searching...
No Matches
Task.2.cs
Go to the documentation of this file.
1using System;
10
12{
13 // Token: 0x02000232 RID: 562
14 [DebuggerTypeProxy(typeof(SystemThreadingTasks_TaskDebugView))]
15 [DebuggerDisplay("Id = {Id}, Status = {Status}, Method = {DebuggerDisplayMethodDescription}")]
16 public class Task : IThreadPoolWorkItem, IAsyncResult, IDisposable
17 {
18 // Token: 0x0600135F RID: 4959 RVA: 0x000288D8 File Offset: 0x00026AD8
23
24 // Token: 0x06001360 RID: 4960 RVA: 0x000288F4 File Offset: 0x00026AF4
25 internal Task()
26 {
27 this.m_stateFlags = 1024;
28 }
29
30 // Token: 0x06001361 RID: 4961 RVA: 0x00028914 File Offset: 0x00026B14
32 {
33 if (!true)
34 {
35 }
36 if (!true)
37 {
38 }
39 }
40
41 // Token: 0x06001362 RID: 4962 RVA: 0x00028930 File Offset: 0x00026B30
43 {
44 do
45 {
46 base..ctor();
47 }
48 while (action == null);
49 this.m_parent = parent;
50 this.TaskConstructorCore(action, state, cancellationToken, creationOptions, internalOptions, scheduler);
51 }
52
53 // Token: 0x06001363 RID: 4963 RVA: 0x00028960 File Offset: 0x00026B60
72
73 // Token: 0x06001364 RID: 4964 RVA: 0x000289BC File Offset: 0x00026BBC
75 {
76 while (this.m_contingentProperties != null)
77 {
78 }
79 long num = 0L;
80 this.EnsureContingentPropertiesInitializedCore(num != 0L).m_cancellationToken = cancellationToken;
82 long num2 = 0L;
83 bool flag = this.InternalCancel(num2 != 0L);
84 }
85
86 // Token: 0x06001365 RID: 4965 RVA: 0x00028A3C File Offset: 0x00026C3C
87 private static void TaskCancelCallback(object o)
88 {
89 if (o != null)
90 {
91 return;
92 }
93 }
94
95 // Token: 0x06001366 RID: 4966 RVA: 0x00028A50 File Offset: 0x00026C50
97 {
98 long num = 0L;
99 return this.TrySetCanceled(tokenToRecord, num);
100 }
101
102 // Token: 0x06001367 RID: 4967 RVA: 0x00028A68 File Offset: 0x00026C68
104 {
105 bool flag = this.AtomicStateUpdate(1024, 1376);
108 return true;
109 }
110
111 // Token: 0x06001368 RID: 4968 RVA: 0x00028A98 File Offset: 0x00026C98
112 internal bool TrySetException(object exceptionObject)
113 {
114 if (this.m_contingentProperties == null)
115 {
117 }
118 bool flag = this.AtomicStateUpdate(1024, 1376);
119 long num = 0L;
120 this.AddException(exceptionObject, num != 0L);
121 long num2 = 0L;
122 this.Finish(num2 != 0L);
123 return true;
124 }
125
126 // Token: 0x170001D6 RID: 470
127 // (get) Token: 0x06001369 RID: 4969 RVA: 0x00028AE0 File Offset: 0x00026CE0
129 {
130 get
131 {
132 /*
133An exception occurred when decompiling this method (06001369)
134
135ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Threading.Tasks.TaskCreationOptions System.Threading.Tasks.Task::get_Options()
136
137 ---> System.Exception: Basic block has to end with unconditional control flow.
138{
139 IL_0000:
140 stloc:int32(var_0_06, ldfld:int32(Task::m_stateFlags, ldloc:Task(this)))
141 brtrue(IL_0000, ldc.i4:bool(1))
142}
143
144 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
145 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
146 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
147 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
148 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
149 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
150 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
151 --- End of inner exception stack trace ---
152 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
153 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
154*/;
155 }
156 }
157
158 // Token: 0x0600136A RID: 4970 RVA: 0x0000207A File Offset: 0x0000027A
159 internal static TaskCreationOptions OptionsMethod(int flags)
160 {
161 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
162 }
163
164 // Token: 0x0600136B RID: 4971 RVA: 0x00028AF8 File Offset: 0x00026CF8
165 internal bool AtomicStateUpdate(int newBits, int illegalBits)
166 {
167 int stateFlags = this.m_stateFlags;
168 return true;
169 }
170
171 // Token: 0x0600136C RID: 4972 RVA: 0x00028B14 File Offset: 0x00026D14
172 internal bool AtomicStateUpdate(int newBits, int illegalBits, int oldFlags)
173 {
174 int stateFlags = this.m_stateFlags;
176 return true;
177 }
178
179 // Token: 0x0600136D RID: 4973 RVA: 0x00028B34 File Offset: 0x00026D34
180 internal void SetNotificationForWaitCompletion(bool enabled)
181 {
182 bool flag = this.AtomicStateUpdate(4096, 1376);
183 }
184
185 // Token: 0x0600136E RID: 4974 RVA: 0x00028B5C File Offset: 0x00026D5C
187 {
188 int stateFlags = this.m_stateFlags;
190 return true;
191 }
192
193 // Token: 0x170001D7 RID: 471
194 // (get) Token: 0x0600136F RID: 4975 RVA: 0x00028B7C File Offset: 0x00026D7C
196 {
197 get
198 {
199 /*
200An exception occurred when decompiling this method (0600136F)
201
202ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean System.Threading.Tasks.Task::get_IsWaitNotificationEnabledOrNotRanToCompletion()
203
204 ---> System.Exception: Basic block has to end with unconditional control flow.
205{
206 Block_0:
207 stloc:int32(var_0_06, ldfld:int32(Task::m_stateFlags, ldloc:Task(this)))
208}
209
210 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
211 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
212 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
213 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
214 --- End of inner exception stack trace ---
215 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
216 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
217*/;
218 }
219 }
220
221 // Token: 0x170001D8 RID: 472
222 // (get) Token: 0x06001370 RID: 4976 RVA: 0x00028B90 File Offset: 0x00026D90
224 {
225 get
226 {
227 /*
228An exception occurred when decompiling this method (06001370)
229
230ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean System.Threading.Tasks.Task::get_ShouldNotifyDebuggerOfWaitCompletion()
231
232 ---> System.Exception: Basic block has to end with unconditional control flow.
233{
234 Block_0:
235 stloc:int32(var_0_06, ldfld:int32(Task::m_stateFlags, ldloc:Task(this)))
236}
237
238 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
239 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
240 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
241 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
242 --- End of inner exception stack trace ---
243 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
244 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
245*/;
246 }
247 }
248
249 // Token: 0x170001D9 RID: 473
250 // (get) Token: 0x06001371 RID: 4977 RVA: 0x00028BA4 File Offset: 0x00026DA4
252 {
253 get
254 {
255 /*
256An exception occurred when decompiling this method (06001371)
257
258ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean System.Threading.Tasks.Task::get_IsWaitNotificationEnabled()
259
260 ---> System.Exception: Basic block has to end with unconditional control flow.
261{
262 Block_0:
263 stloc:int32(var_0_06, ldfld:int32(Task::m_stateFlags, ldloc:Task(this)))
264}
265
266 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
267 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
268 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
269 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
270 --- End of inner exception stack trace ---
271 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
272 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
273*/;
274 }
275 }
276
277 // Token: 0x06001372 RID: 4978 RVA: 0x00028BB8 File Offset: 0x00026DB8
279 {
280 }
281
282 // Token: 0x06001373 RID: 4979 RVA: 0x00028BC8 File Offset: 0x00026DC8
283 internal bool MarkStarted()
284 {
285 return this.AtomicStateUpdate(1, 65);
286 }
287
288 // Token: 0x06001374 RID: 4980 RVA: 0x00028BE0 File Offset: 0x00026DE0
289 internal void AddNewChild()
290 {
291 while (this.m_contingentProperties != null)
292 {
293 }
294 int num = 1;
295 int completionCountdown = this.EnsureContingentPropertiesInitializedCore(num != 0).m_completionCountdown;
296 }
297
298 // Token: 0x06001375 RID: 4981 RVA: 0x00028C08 File Offset: 0x00026E08
299 internal void DisregardChild()
300 {
301 if (this.m_contingentProperties == null)
302 {
303 int num = 1;
305 }
306 }
307
308 // Token: 0x06001376 RID: 4982 RVA: 0x00028C28 File Offset: 0x00026E28
310 {
311 while (cancellationToken == null)
312 {
313 }
314 }
315
316 // Token: 0x170001DA RID: 474
317 // (get) Token: 0x06001377 RID: 4983 RVA: 0x00028C3C File Offset: 0x00026E3C
318 public int Id
319 {
320 get
321 {
322 /*
323An exception occurred when decompiling this method (06001377)
324
325ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 System.Threading.Tasks.Task::get_Id()
326
327 ---> System.Exception: Basic block has to end with unconditional control flow.
328{
329 Block_0:
330 brtrue(IL_0000, ldc.i4:bool(1))
331}
332
333 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
334 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
335 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
336 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
337 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
338 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
339 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
340 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
341 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
342 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
343 --- End of inner exception stack trace ---
344 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
345 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
346*/;
347 }
348 }
349
350 // Token: 0x170001DB RID: 475
351 // (get) Token: 0x06001378 RID: 4984 RVA: 0x00028C54 File Offset: 0x00026E54
352 internal static Task InternalCurrent
353 {
354 get
355 {
356 /*
357An exception occurred when decompiling this method (06001378)
358
359ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Threading.Tasks.Task System.Threading.Tasks.Task::get_InternalCurrent()
360
361 ---> System.Exception: Basic block has to end with unconditional control flow.
362{
363 IL_0000:
364 brtrue(IL_0000, ldc.i4:bool(1))
365}
366
367 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
368 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
369 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
370 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
371 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
372 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
373 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
374 --- End of inner exception stack trace ---
375 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
376 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
377*/;
378 }
379 }
380
381 // Token: 0x06001379 RID: 4985 RVA: 0x00028C64 File Offset: 0x00026E64
383 {
384 /*
385An exception occurred when decompiling this method (06001379)
386
387ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Threading.Tasks.Task System.Threading.Tasks.Task::InternalCurrentIfAttached(System.Threading.Tasks.TaskCreationOptions)
388
389 ---> System.Exception: Basic block has to end with unconditional control flow.
390{
391 IL_0005:
392 brtrue(IL_0000, ldc.i4:bool(1))
393}
394
395 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
396 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
397 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
398 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
399 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
400 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
401 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
402 --- End of inner exception stack trace ---
403 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
404 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
405*/;
406 }
407
408 // Token: 0x170001DC RID: 476
409 // (get) Token: 0x0600137A RID: 4986 RVA: 0x00028C78 File Offset: 0x00026E78
411 {
412 get
413 {
414 /*
415An exception occurred when decompiling this method (0600137A)
416
417ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Threading.Tasks.StackGuard System.Threading.Tasks.Task::get_CurrentStackGuard()
418
419 ---> System.Exception: Basic block has to end with unconditional control flow.
420{
421 IL_0000:
422 brtrue(IL_0000, ldc.i4:bool(1))
423}
424
425 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
426 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
427 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
428 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
429 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
430 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
431 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
432 --- End of inner exception stack trace ---
433 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
434 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
435*/;
436 }
437 }
438
439 // Token: 0x170001DD RID: 477
440 // (get) Token: 0x0600137B RID: 4987 RVA: 0x00028C88 File Offset: 0x00026E88
442 {
443 get
444 {
445 int stateFlags = this.m_stateFlags;
446 long num = 0L;
447 return this.GetExceptions(num != 0L);
448 }
449 }
450
451 // Token: 0x170001DE RID: 478
452 // (get) Token: 0x0600137C RID: 4988 RVA: 0x00028CA8 File Offset: 0x00026EA8
454 {
455 get
456 {
457 int stateFlags = this.m_stateFlags;
458 return TaskStatus.Faulted;
459 }
460 }
461
462 // Token: 0x170001DF RID: 479
463 // (get) Token: 0x0600137D RID: 4989 RVA: 0x00028CC8 File Offset: 0x00026EC8
464 public bool IsCanceled
465 {
466 get
467 {
468 /*
469An exception occurred when decompiling this method (0600137D)
470
471ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean System.Threading.Tasks.Task::get_IsCanceled()
472
473 ---> System.Exception: Basic block has to end with unconditional control flow.
474{
475 Block_0:
476 stloc:int32(var_0_06, ldfld:int32(Task::m_stateFlags, ldloc:Task(this)))
477}
478
479 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
480 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
481 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
482 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
483 --- End of inner exception stack trace ---
484 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
485 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
486*/;
487 }
488 }
489
490 // Token: 0x170001E0 RID: 480
491 // (get) Token: 0x0600137E RID: 4990 RVA: 0x00028CDC File Offset: 0x00026EDC
493 {
494 get
495 {
497 if (contingentProperties != null)
498 {
499 int internalCancellationRequested = contingentProperties.m_internalCancellationRequested;
500 }
501 bool flag;
502 return flag;
503 }
504 }
505
506 // Token: 0x0600137F RID: 4991 RVA: 0x00028D00 File Offset: 0x00026F00
508 {
510 if (contingentProperties != null)
511 {
513 }
514 return this.EnsureContingentPropertiesInitializedCore(needsProtection);
515 }
516
517 // Token: 0x06001380 RID: 4992 RVA: 0x00028D20 File Offset: 0x00026F20
523
524 // Token: 0x170001E1 RID: 481
525 // (get) Token: 0x06001381 RID: 4993 RVA: 0x00028D30 File Offset: 0x00026F30
527 {
528 get
529 {
531 if (contingentProperties != null)
532 {
533 return contingentProperties.m_cancellationToken;
534 }
535 }
536 }
537
538 // Token: 0x170001E2 RID: 482
539 // (get) Token: 0x06001382 RID: 4994 RVA: 0x00028D50 File Offset: 0x00026F50
541 {
542 get
543 {
544 /*
545An exception occurred when decompiling this method (06001382)
546
547ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean System.Threading.Tasks.Task::get_IsCancellationAcknowledged()
548
549 ---> System.Exception: Basic block has to end with unconditional control flow.
550{
551 Block_0:
552 stloc:int32(var_0_06, ldfld:int32(Task::m_stateFlags, ldloc:Task(this)))
553}
554
555 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
556 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
557 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
558 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
559 --- End of inner exception stack trace ---
560 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
561 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
562*/;
563 }
564 }
565
566 // Token: 0x170001E3 RID: 483
567 // (get) Token: 0x06001383 RID: 4995 RVA: 0x00028D64 File Offset: 0x00026F64
568 public bool IsCompleted
569 {
570 get
571 {
572 /*
573An exception occurred when decompiling this method (06001383)
574
575ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean System.Threading.Tasks.Task::get_IsCompleted()
576
577 ---> System.Exception: Basic block has to end with unconditional control flow.
578{
579 IL_0000:
580 stloc:int32(var_0_06, ldfld:int32(Task::m_stateFlags, ldloc:Task(this)))
581 brtrue(IL_0000, ldc.i4:bool(1))
582}
583
584 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
585 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
586 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
587 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
588 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
589 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
590 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
591 --- End of inner exception stack trace ---
592 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
593 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
594*/;
595 }
596 }
597
598 // Token: 0x06001384 RID: 4996 RVA: 0x0000207A File Offset: 0x0000027A
599 private static bool IsCompletedMethod(int flags)
600 {
601 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
602 }
603
604 // Token: 0x170001E4 RID: 484
605 // (get) Token: 0x06001385 RID: 4997 RVA: 0x00028D7C File Offset: 0x00026F7C
607 {
608 get
609 {
610 /*
611An exception occurred when decompiling this method (06001385)
612
613ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean System.Threading.Tasks.Task::get_IsCompletedSuccessfully()
614
615 ---> System.Exception: Basic block has to end with unconditional control flow.
616{
617 Block_0:
618 stloc:int32(var_0_06, ldfld:int32(Task::m_stateFlags, ldloc:Task(this)))
619}
620
621 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
622 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
623 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
624 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
625 --- End of inner exception stack trace ---
626 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
627 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
628*/;
629 }
630 }
631
632 // Token: 0x170001E5 RID: 485
633 // (get) Token: 0x06001386 RID: 4998 RVA: 0x00028D90 File Offset: 0x00026F90
635 {
636 get
637 {
638 return this.Options;
639 }
640 }
641
642 // Token: 0x170001E6 RID: 486
643 // (get) Token: 0x06001387 RID: 4999 RVA: 0x00028DA4 File Offset: 0x00026FA4
645 {
646 get
647 {
648 int stateFlags = this.m_stateFlags;
649 return this.CompletedEvent.WaitHandle;
650 }
651 }
652
653 // Token: 0x170001E7 RID: 487
654 // (get) Token: 0x06001388 RID: 5000 RVA: 0x00028DC4 File Offset: 0x00026FC4
655 public object AsyncState
656 {
657 get
658 {
659 return this.m_stateObject;
660 }
661 }
662
663 // Token: 0x170001E8 RID: 488
664 // (get) Token: 0x06001389 RID: 5001 RVA: 0x00028DD8 File Offset: 0x00026FD8
666 {
667 get
668 {
669 }
670 }
671
672 // Token: 0x170001E9 RID: 489
673 // (get) Token: 0x0600138A RID: 5002 RVA: 0x0000207A File Offset: 0x0000027A
675 {
676 get
677 {
678 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
679 }
680 }
681
682 // Token: 0x170001EA RID: 490
683 // (get) Token: 0x0600138B RID: 5003 RVA: 0x00028DE8 File Offset: 0x00026FE8
684 public static TaskFactory Factory
685 {
687 get
688 {
689 /*
690An exception occurred when decompiling this method (0600138B)
691
692ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Threading.Tasks.TaskFactory System.Threading.Tasks.Task::get_Factory()
693
694 ---> System.Exception: Basic block has to end with unconditional control flow.
695{
696 IL_0000:
697 brtrue(IL_0000, ldc.i4:bool(1))
698}
699
700 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
701 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
702 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
703 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
704 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
705 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
706 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
707 --- End of inner exception stack trace ---
708 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
709 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
710*/;
711 }
712 }
713
714 // Token: 0x170001EB RID: 491
715 // (get) Token: 0x0600138C RID: 5004 RVA: 0x00028DF8 File Offset: 0x00026FF8
716 public static Task CompletedTask
717 {
719 get
720 {
721 /*
722An exception occurred when decompiling this method (0600138C)
723
724ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Threading.Tasks.Task System.Threading.Tasks.Task::get_CompletedTask()
725
726 ---> System.Exception: Basic block has to end with unconditional control flow.
727{
728 IL_0000:
729 brtrue(IL_0000, ldc.i4:bool(1))
730}
731
732 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
733 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
734 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
735 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
736 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
737 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
738 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
739 --- End of inner exception stack trace ---
740 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
741 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
742*/;
743 }
744 }
745
746 // Token: 0x170001EC RID: 492
747 // (get) Token: 0x0600138D RID: 5005 RVA: 0x00028E08 File Offset: 0x00027008
749 {
750 get
751 {
752 /*
753An exception occurred when decompiling this method (0600138D)
754
755ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Threading.ManualResetEventSlim System.Threading.Tasks.Task::get_CompletedEvent()
756
757 ---> System.Exception: Basic block has to end with unconditional control flow.
758{
759 IL_0022:
760 stloc:bool(var_2_28, callgetter:bool(Task::get_IsCompleted, ldloc:Task(this)))
761}
762
763 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
764 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
765 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
766 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
767 --- End of inner exception stack trace ---
768 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
769 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
770*/;
771 }
772 }
773
774 // Token: 0x170001ED RID: 493
775 // (get) Token: 0x0600138E RID: 5006 RVA: 0x00028E40 File Offset: 0x00027040
776 internal bool ExceptionRecorded
777 {
778 get
779 {
781 if (contingentProperties != null && contingentProperties.m_exceptionsHolder != null)
782 {
784 return;
785 }
786 }
787 }
788
789 // Token: 0x170001EE RID: 494
790 // (get) Token: 0x0600138F RID: 5007 RVA: 0x00028E6C File Offset: 0x0002706C
791 public bool IsFaulted
792 {
793 get
794 {
795 /*
796An exception occurred when decompiling this method (0600138F)
797
798ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean System.Threading.Tasks.Task::get_IsFaulted()
799
800 ---> System.Exception: Basic block has to end with unconditional control flow.
801{
802 Block_0:
803 stloc:int32(var_0_06, ldfld:int32(Task::m_stateFlags, ldloc:Task(this)))
804}
805
806 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
807 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
808 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
809 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
810 --- End of inner exception stack trace ---
811 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
812 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
813*/;
814 }
815 }
816
817 // Token: 0x170001EF RID: 495
818 // (get) Token: 0x06001390 RID: 5008 RVA: 0x00028E80 File Offset: 0x00027080
819 // (set) Token: 0x06001391 RID: 5009 RVA: 0x00028EA4 File Offset: 0x000270A4
821 {
822 get
823 {
824 /*
825An exception occurred when decompiling this method (06001390)
826
827ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Threading.ExecutionContext System.Threading.Tasks.Task::get_CapturedContext()
828
829 ---> System.Exception: Basic block has to end with unconditional control flow.
830{
831 IL_0012:
832 brtrue(IL_0000, ldc.i4:bool(1))
833}
834
835 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
836 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
837 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
838 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
839 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
840 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
841 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
842 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
843 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
844 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
845 --- End of inner exception stack trace ---
846 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
847 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
848*/;
849 }
850 set
851 {
852 do
853 {
854 if (!true)
855 {
856 }
857 }
858 while (this.m_contingentProperties != null);
859 long num = 0L;
860 this.EnsureContingentPropertiesInitializedCore(num != 0L).m_capturedContext = value;
861 }
862 }
863
864 // Token: 0x06001392 RID: 5010 RVA: 0x00028ECC File Offset: 0x000270CC
865 public void Dispose()
866 {
867 GC.SuppressFinalize(this);
868 }
869
870 // Token: 0x06001393 RID: 5011 RVA: 0x00028EE0 File Offset: 0x000270E0
871 protected virtual void Dispose(bool disposing)
872 {
874 bool isCompleted = this.IsCompleted;
876 if (contingentProperties != null)
877 {
879 if (completionEvent != null)
880 {
882 completionEvent.Set();
883 completionEvent.Dispose();
884 }
885 }
886 int stateFlags = this.m_stateFlags;
887 }
888
889 // Token: 0x06001394 RID: 5012 RVA: 0x00028F2C File Offset: 0x0002712C
891 {
892 int num = 1;
893 int num2 = 65;
894 bool flag = this.AtomicStateUpdate(num, num2);
895 }
896
897 // Token: 0x06001395 RID: 5013 RVA: 0x00028FA8 File Offset: 0x000271A8
898 internal void AddException(object exceptionObject)
899 {
900 long num = 0L;
901 this.AddException(exceptionObject, num != 0L);
902 }
903
904 // Token: 0x06001396 RID: 5014 RVA: 0x00028FC0 File Offset: 0x000271C0
906 {
908 if (this.m_contingentProperties == null)
909 {
910 contingentProperties = this.EnsureContingentPropertiesInitializedCore(true);
911 }
912 long num;
913 if (contingentProperties.m_exceptionsHolder == null && contingentProperties != null)
914 {
915 num = 0L;
916 }
918 }
919
920 // Token: 0x06001397 RID: 5015 RVA: 0x00029024 File Offset: 0x00027224
929
930 // Token: 0x06001398 RID: 5016 RVA: 0x00029060 File Offset: 0x00027260
937
938 // Token: 0x06001399 RID: 5017 RVA: 0x0002908C File Offset: 0x0002728C
940 {
942 if (contingentProperties == null)
943 {
944 return;
945 }
947 if (exceptionsHolder != null)
948 {
950 }
951 }
952
953 // Token: 0x0600139A RID: 5018 RVA: 0x000290B8 File Offset: 0x000272B8
955 {
956 /*
957An exception occurred when decompiling this method (0600139A)
958
959ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void System.Threading.Tasks.Task::ThrowIfExceptional(System.Boolean)
960
961 ---> System.Exception: Basic block has to end with unconditional control flow.
962{
963 IL_000A:
964 call:void(Task::UpdateExceptionObservedStatus, ldloc:Task(this))
965}
966
967 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
968 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
969 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
970 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
971 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
972 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
973 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
974 --- End of inner exception stack trace ---
975 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
976 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
977*/;
978 }
979
980 // Token: 0x0600139B RID: 5019 RVA: 0x000290D4 File Offset: 0x000272D4
982 {
983 Task parent = this.m_parent;
984 if (parent != null)
985 {
988 if (parent == null)
989 {
990 }
991 if (!true)
992 {
993 }
994 Task parent2 = this.m_parent;
995 int stateFlags = this.m_stateFlags;
996 }
997 }
998
999 // Token: 0x170001F0 RID: 496
1000 // (get) Token: 0x0600139C RID: 5020 RVA: 0x00029114 File Offset: 0x00027314
1002 {
1003 get
1004 {
1005 /*
1006An exception occurred when decompiling this method (0600139C)
1007
1008ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean System.Threading.Tasks.Task::get_IsExceptionObservedByParent()
1009
1010 ---> System.Exception: Basic block has to end with unconditional control flow.
1011{
1012 Block_0:
1013 stloc:int32(var_0_06, ldfld:int32(Task::m_stateFlags, ldloc:Task(this)))
1014}
1015
1016 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
1017 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
1018 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
1019 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
1020 --- End of inner exception stack trace ---
1021 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
1022 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
1023*/;
1024 }
1025 }
1026
1027 // Token: 0x170001F1 RID: 497
1028 // (get) Token: 0x0600139D RID: 5021 RVA: 0x00029128 File Offset: 0x00027328
1029 internal bool IsDelegateInvoked
1030 {
1031 get
1032 {
1033 /*
1034An exception occurred when decompiling this method (0600139D)
1035
1036ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean System.Threading.Tasks.Task::get_IsDelegateInvoked()
1037
1038 ---> System.Exception: Basic block has to end with unconditional control flow.
1039{
1040 Block_0:
1041 stloc:int32(var_0_06, ldfld:int32(Task::m_stateFlags, ldloc:Task(this)))
1042}
1043
1044 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
1045 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
1046 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
1047 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
1048 --- End of inner exception stack trace ---
1049 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
1050 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
1051*/;
1052 }
1053 }
1054
1055 // Token: 0x0600139E RID: 5022 RVA: 0x0002913C File Offset: 0x0002733C
1056 internal void Finish(bool bUserDelegateExecuted)
1057 {
1059 if (contingentProperties == null)
1060 {
1061 this.FinishStageTwo();
1062 return;
1063 }
1064 int completionCountdown = contingentProperties.m_completionCountdown;
1065 if (contingentProperties != null)
1066 {
1067 bool flag = this.AtomicStateUpdate(1, 352);
1068 return;
1069 }
1070 this.FinishStageTwo();
1072 if (exceptionalChildren != null)
1073 {
1075 if (!true)
1076 {
1077 }
1078 long num = 0L;
1079 if (true)
1080 {
1082 }
1083 if (num != 0L)
1084 {
1085 throw new OutOfMemoryException();
1086 }
1087 }
1088 }
1089
1090 // Token: 0x0600139F RID: 5023 RVA: 0x000291C4 File Offset: 0x000273C4
1091 internal void FinishStageTwo()
1092 {
1095 if (true || !true)
1096 {
1097 }
1098 if (!true)
1099 {
1100 }
1101 if (true)
1102 {
1103 if (!true)
1104 {
1105 }
1107 }
1108 }
1109
1110 // Token: 0x060013A0 RID: 5024 RVA: 0x00029244 File Offset: 0x00027444
1111 internal void FinishStageThree()
1112 {
1113 Task parent = this.m_parent;
1114 if (parent != null)
1115 {
1117 }
1118 }
1119
1120 // Token: 0x060013A1 RID: 5025 RVA: 0x00029264 File Offset: 0x00027464
1122 {
1124 int stateFlags = childTask.m_stateFlags;
1125 int stateFlags2 = childTask.m_stateFlags;
1126 if (contingentProperties.m_exceptionalChildren == null)
1127 {
1128 }
1129 long num = 0L;
1130 if (num == 0L)
1131 {
1132 if (num == 0L)
1133 {
1134 this.FinishStageTwo();
1135 }
1136 return;
1137 }
1138 throw new OutOfMemoryException();
1139 }
1140
1141 // Token: 0x060013A2 RID: 5026 RVA: 0x000292B8 File Offset: 0x000274B8
1143 {
1145 if (contingentProperties != null)
1146 {
1148 if (exceptionalChildren != null)
1149 {
1150 return;
1151 }
1152 }
1153 }
1154
1155 // Token: 0x060013A3 RID: 5027 RVA: 0x00029364 File Offset: 0x00027564
1156 private void Execute()
1157 {
1158 }
1159
1160 // Token: 0x060013A4 RID: 5028 RVA: 0x00029374 File Offset: 0x00027574
1162 {
1163 long num = 0L;
1164 bool flag = this.ExecuteEntry(num != 0L);
1165 }
1166
1167 // Token: 0x060013A5 RID: 5029 RVA: 0x0002938C File Offset: 0x0002758C
1169 {
1170 int stateFlags = this.m_stateFlags;
1173 int stateFlags2 = this.m_stateFlags;
1174 int stateFlags3 = this.m_stateFlags;
1176 if (!true)
1177 {
1178 }
1179 return true;
1180 }
1181
1182 // Token: 0x060013A6 RID: 5030 RVA: 0x000293CC File Offset: 0x000275CC
1183 private static void ExecutionContextCallback(object obj)
1184 {
1185 if (obj != null)
1186 {
1187 }
1188 }
1189
1190 // Token: 0x060013A7 RID: 5031 RVA: 0x000293E0 File Offset: 0x000275E0
1191 internal virtual void InnerInvoke()
1192 {
1193 Delegate action = this.m_action;
1194 if (action != null)
1195 {
1196 }
1197 if (action != null)
1198 {
1199 IntPtr method_code = action.method_code;
1200 IntPtr invoke_impl = action.invoke_impl;
1201 IntPtr method = action.method;
1202 return;
1203 }
1204 }
1205
1206 // Token: 0x060013A8 RID: 5032 RVA: 0x00029414 File Offset: 0x00027614
1208 {
1209 if (unhandledException != null)
1210 {
1212 CancellationToken cancellationToken = this.m_contingentProperties.m_cancellationToken;
1213 int stateFlags = this.m_stateFlags;
1214 return;
1215 }
1216 long num = 0L;
1217 this.AddException(unhandledException, num != 0L);
1218 }
1219
1220 // Token: 0x060013A9 RID: 5033 RVA: 0x0000207A File Offset: 0x0000027A
1222 {
1223 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
1224 }
1225
1226 // Token: 0x060013AA RID: 5034 RVA: 0x0000207A File Offset: 0x0000027A
1228 {
1229 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
1230 }
1231
1232 // Token: 0x060013AB RID: 5035 RVA: 0x0002944C File Offset: 0x0002764C
1234 {
1236 if (synchronizationContext != null)
1237 {
1239 Type type2;
1240 bool flag = type != type2;
1241 return;
1242 }
1243 if (TaskScheduler.InternalCurrent != null)
1244 {
1245 if (!true)
1246 {
1247 }
1248 return;
1249 }
1250 long num = 0L;
1251 bool flag2 = this.AddTaskContinuation(continuationAction, num != 0L);
1252 }
1253
1254 // Token: 0x060013AC RID: 5036 RVA: 0x00029498 File Offset: 0x00027698
1255 public void Wait()
1256 {
1257 }
1258
1259 // Token: 0x060013AD RID: 5037 RVA: 0x000294A8 File Offset: 0x000276A8
1260 public bool Wait(int millisecondsTimeout)
1261 {
1262 bool flag;
1263 return flag;
1264 }
1265
1266 // Token: 0x060013AE RID: 5038 RVA: 0x000294B8 File Offset: 0x000276B8
1267 public bool Wait(int millisecondsTimeout, CancellationToken cancellationToken)
1268 {
1269 /*
1270An exception occurred when decompiling this method (060013AE)
1271
1272ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean System.Threading.Tasks.Task::Wait(System.Int32,System.Threading.CancellationToken)
1273
1274 ---> System.Exception: Basic block has to end with unconditional control flow.
1275{
1276 Block_0:
1277 stloc:int32(var_0_06, ldfld:int32(Task::m_stateFlags, ldloc:Task(this)))
1278 stloc:int32(var_2_0D, ldfld:int32(Task::m_stateFlags, ldloc:Task(this)))
1279 stloc:bool(var_3_14, call:bool(Task::NotifyDebuggerOfWaitCompletionIfNecessary, ldloc:Task(this)))
1280 stloc:int32(var_4_1B, ldfld:int32(Task::m_stateFlags, ldloc:Task(this)))
1281 call:void(Task::ThrowIfExceptional, ldloc:Task(this), ldc.i4:bool(1))
1282}
1283
1284 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
1285 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
1286 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
1287 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
1288 --- End of inner exception stack trace ---
1289 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
1290 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
1291*/;
1292 }
1293
1294 // Token: 0x060013AF RID: 5039 RVA: 0x000294EC File Offset: 0x000276EC
1295 private bool WrappedTryRunInline()
1296 {
1298 do
1299 {
1301 }
1302 while (taskScheduler == null);
1303 int num = 1;
1304 return taskScheduler.TryRunInline(this, num != 0);
1305 }
1306
1307 // Token: 0x060013B0 RID: 5040 RVA: 0x00029510 File Offset: 0x00027710
1308 internal bool InternalWait(int millisecondsTimeout, CancellationToken cancellationToken)
1309 {
1310 return TaskTrace.Enabled;
1311 }
1312
1313 // Token: 0x060013B1 RID: 5041 RVA: 0x000295B4 File Offset: 0x000277B4
1314 private bool SpinThenBlockingWait(int millisecondsTimeout, CancellationToken cancellationToken)
1315 {
1317 return this.SpinWait(millisecondsTimeout);
1318 }
1319
1320 // Token: 0x060013B2 RID: 5042 RVA: 0x00029608 File Offset: 0x00027808
1321 private bool SpinWait(int millisecondsTimeout)
1322 {
1323 bool isCompleted = this.IsCompleted;
1324 return true;
1325 }
1326
1327 // Token: 0x060013B3 RID: 5043 RVA: 0x0002962C File Offset: 0x0002782C
1329 {
1330 int stateFlags = this.m_stateFlags;
1331 if (this.m_taskScheduler != null)
1332 {
1333 }
1334 if (false)
1335 {
1336 int num = 64;
1337 int num2 = 66;
1338 return this.AtomicStateUpdate(num, num2);
1339 }
1341 int num3 = 64;
1342 int num4 = 66;
1343 return this.AtomicStateUpdate(num3, num4);
1344 }
1345
1346 // Token: 0x060013B4 RID: 5044 RVA: 0x00029698 File Offset: 0x00027898
1348 {
1349 while (this.m_contingentProperties != null)
1350 {
1351 }
1352 this.EnsureContingentPropertiesInitializedCore(true).m_internalCancellationRequested = 1;
1353 }
1354
1355 // Token: 0x060013B5 RID: 5045 RVA: 0x000296BC File Offset: 0x000278BC
1364
1365 // Token: 0x060013B6 RID: 5046 RVA: 0x000296E0 File Offset: 0x000278E0
1367 {
1368 this.RecordInternalCancellationRequest(tokenToRecord);
1369 if (cancellationException != null)
1370 {
1371 this.AddException(cancellationException, true);
1372 return;
1373 }
1374 }
1375
1376 // Token: 0x060013B7 RID: 5047 RVA: 0x00029700 File Offset: 0x00027900
1378 {
1379 int stateFlags = this.m_stateFlags;
1380 if (this.m_taskId == 0 || stateFlags != 0)
1381 {
1382 }
1383 if (!true)
1384 {
1385 }
1386 if (!true)
1387 {
1388 }
1389 if (true)
1390 {
1391 if (!true)
1392 {
1393 }
1395 }
1396 this.FinishStageThree();
1397 }
1398
1399 // Token: 0x060013B8 RID: 5048 RVA: 0x00029738 File Offset: 0x00027938
1401 {
1402 int stateFlags = this.m_stateFlags;
1403 }
1404
1405 // Token: 0x060013B9 RID: 5049 RVA: 0x0002974C File Offset: 0x0002794C
1406 internal void FinishContinuations()
1407 {
1408 int num = 1;
1409 if (num == 0)
1410 {
1411 }
1412 if (num == 0)
1413 {
1414 }
1415 int stateFlags = this.m_stateFlags;
1416 int stateFlags2 = this.m_stateFlags;
1417 }
1418
1419 // Token: 0x060013BA RID: 5050 RVA: 0x000297D8 File Offset: 0x000279D8
1421 {
1422 if (true)
1423 {
1424 return;
1425 }
1426 }
1427
1428 // Token: 0x060013BB RID: 5051 RVA: 0x000297EC File Offset: 0x000279EC
1430 {
1431 if (!true)
1432 {
1433 }
1435 Task task;
1436 return task;
1437 }
1438
1439 // Token: 0x060013BC RID: 5052 RVA: 0x00029804 File Offset: 0x00027A04
1441 {
1442 while (continuationAction != null && scheduler == null)
1443 {
1444 }
1445 return "continuationAction";
1446 }
1447
1448 // Token: 0x060013BD RID: 5053 RVA: 0x0002981C File Offset: 0x00027A1C
1450 {
1451 return this.ContinueWith(continuationAction, state, scheduler, cancellationToken, continuationOptions);
1452 }
1453
1454 // Token: 0x060013BE RID: 5054 RVA: 0x00029838 File Offset: 0x00027A38
1456 {
1457 while (continuationAction != null && scheduler == null)
1458 {
1459 }
1460 return "continuationAction";
1461 }
1462
1463 // Token: 0x060013BF RID: 5055 RVA: 0x00029850 File Offset: 0x00027A50
1469
1470 // Token: 0x060013C0 RID: 5056 RVA: 0x00029874 File Offset: 0x00027A74
1472 {
1473 bool isCompleted = this.IsCompleted;
1474 }
1475
1476 // Token: 0x060013C1 RID: 5057 RVA: 0x00029890 File Offset: 0x00027A90
1478 {
1479 long num = 0L;
1480 this.AddCompletionAction(action, num != 0L);
1481 }
1482
1483 // Token: 0x060013C2 RID: 5058 RVA: 0x000298A8 File Offset: 0x00027AA8
1487
1488 // Token: 0x060013C3 RID: 5059 RVA: 0x000298B8 File Offset: 0x00027AB8
1490 {
1492 if (!true)
1493 {
1494 }
1495 if (continuationObject != null)
1496 {
1497 }
1498 if (!false)
1499 {
1500 }
1501 throw new OutOfMemoryException();
1502 }
1503
1504 // Token: 0x060013C4 RID: 5060 RVA: 0x000298EC File Offset: 0x00027AEC
1505 private bool AddTaskContinuation(object tc, bool addBeforeOthers)
1506 {
1507 bool isCompleted = this.IsCompleted;
1508 if (this.m_continuationObject == null)
1509 {
1510 }
1512 }
1513
1514 // Token: 0x060013C5 RID: 5061 RVA: 0x00029914 File Offset: 0x00027B14
1516 {
1518 if (!true)
1519 {
1520 }
1521 if (continuationObject2 != null)
1522 {
1523 }
1524 }
1525
1526 // Token: 0x060013C6 RID: 5062 RVA: 0x0000207A File Offset: 0x0000027A
1528 {
1529 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
1530 }
1531
1532 // Token: 0x060013C7 RID: 5063 RVA: 0x00029954 File Offset: 0x00027B54
1534 {
1535 /*
1536An exception occurred when decompiling this method (060013C7)
1537
1538ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Threading.Tasks.Task System.Threading.Tasks.Task::FromException(System.Exception)
1539
1540 ---> System.Exception: Basic block has to end with unconditional control flow.
1541{
1542 IL_0000:
1543 brtrue(IL_0000, ldc.i4:bool(1))
1544}
1545
1546 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
1547 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
1548 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
1549 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
1550 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
1551 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
1552 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
1553 --- End of inner exception stack trace ---
1554 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
1555 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
1556*/;
1557 }
1558
1559 // Token: 0x060013C8 RID: 5064 RVA: 0x00029964 File Offset: 0x00027B64
1561 {
1562 /*
1563An exception occurred when decompiling this method (060013C8)
1564
1565ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Threading.Tasks.Task`1<TResult> System.Threading.Tasks.Task::FromException<TResult>(System.Exception)
1566
1567 ---> System.Exception: Basic block has to end with unconditional control flow.
1568{
1569 Block_0:
1570 stloc:object(var_0_06, ldfld:object(Exception::_stackTrace, ldloc:Exception(exception)))
1571 stloc:object(var_1_0D, ldfld:object(Exception::_stackTrace, ldloc:Exception(exception)))
1572}
1573
1574 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
1575 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
1576 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
1577 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
1578 --- End of inner exception stack trace ---
1579 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
1580 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
1581*/;
1582 }
1583
1584 // Token: 0x060013C9 RID: 5065 RVA: 0x0000207A File Offset: 0x0000027A
1585 internal static Task FromCancellation(CancellationToken cancellationToken)
1586 {
1587 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
1588 }
1589
1590 // Token: 0x060013CA RID: 5066 RVA: 0x00029980 File Offset: 0x00027B80
1591 public static Task FromCanceled(CancellationToken cancellationToken)
1592 {
1593 if (!true)
1594 {
1595 }
1596 Task task;
1597 return task;
1598 }
1599
1600 // Token: 0x060013CB RID: 5067 RVA: 0x0000207A File Offset: 0x0000027A
1602 {
1603 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
1604 }
1605
1606 // Token: 0x060013CC RID: 5068 RVA: 0x00029994 File Offset: 0x00027B94
1608 {
1609 /*
1610An exception occurred when decompiling this method (060013CC)
1611
1612ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Threading.Tasks.Task`1<TResult> System.Threading.Tasks.Task::FromCanceled<TResult>(System.Threading.CancellationToken)
1613
1614 ---> System.Exception: Basic block has to end with unconditional control flow.
1615{
1616 IL_0000:
1617 brtrue(IL_0000, ldc.i4:bool(1))
1618}
1619
1620 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
1621 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
1622 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
1623 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
1624 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
1625 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
1626 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
1627 --- End of inner exception stack trace ---
1628 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
1629 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
1630*/;
1631 }
1632
1633 // Token: 0x060013CD RID: 5069 RVA: 0x000299A4 File Offset: 0x00027BA4
1635 {
1636 /*
1637An exception occurred when decompiling this method (060013CD)
1638
1639ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Threading.Tasks.Task`1<TResult> System.Threading.Tasks.Task::FromCancellation<TResult>(System.OperationCanceledException)
1640
1641 ---> System.Exception: Basic block has to end with unconditional control flow.
1642{
1643 Block_0:
1644 stloc:object(var_0_06, ldfld:object(Exception::_stackTrace, ldloc:OperationCanceledException[exp:Exception](exception)))
1645 stloc:object(var_1_0D, ldfld:object(Exception::_stackTrace, ldloc:OperationCanceledException[exp:Exception](exception)))
1646}
1647
1648 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
1649 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
1650 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
1651 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
1652 --- End of inner exception stack trace ---
1653 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
1654 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
1655*/;
1656 }
1657
1658 // Token: 0x060013CE RID: 5070 RVA: 0x000299C0 File Offset: 0x00027BC0
1659 public static Task Run(Action action)
1660 {
1661 if (!true)
1662 {
1663 }
1664 if (!true)
1665 {
1666 }
1667 Task task;
1668 return task;
1669 }
1670
1671 // Token: 0x060013CF RID: 5071 RVA: 0x000299D8 File Offset: 0x00027BD8
1673 {
1674 if (!true)
1675 {
1676 }
1677 if (!true)
1678 {
1679 return;
1680 }
1681 }
1682
1683 // Token: 0x060013D0 RID: 5072 RVA: 0x000299EC File Offset: 0x00027BEC
1684 public static Task Run(Func<Task> function)
1685 {
1686 if (!true)
1687 {
1688 }
1689 Task task;
1690 return task;
1691 }
1692
1693 // Token: 0x060013D1 RID: 5073 RVA: 0x00029A00 File Offset: 0x00027C00
1694 public static Task Run(Func<Task> function, CancellationToken cancellationToken)
1695 {
1696 if (!true)
1697 {
1698 }
1699 Task task;
1700 return task;
1701 }
1702
1703 // Token: 0x060013D2 RID: 5074 RVA: 0x00029A20 File Offset: 0x00027C20
1705 {
1706 /*
1707An exception occurred when decompiling this method (060013D2)
1708
1709ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Threading.Tasks.Task`1<TResult> System.Threading.Tasks.Task::Run<TResult>(System.Func`1<System.Threading.Tasks.Task`1<TResult>>)
1710
1711 ---> System.Exception: Basic block has to end with unconditional control flow.
1712{
1713 IL_0000:
1714 brtrue(IL_0000, ldc.i4:bool(1))
1715}
1716
1717 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
1718 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
1719 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
1720 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
1721 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
1722 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
1723 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
1724 --- End of inner exception stack trace ---
1725 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
1726 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
1727*/;
1728 }
1729
1730 // Token: 0x060013D3 RID: 5075 RVA: 0x00029A30 File Offset: 0x00027C30
1731 public static Task<TResult> Run<TResult>(Func<Task<TResult>> function, CancellationToken cancellationToken)
1732 {
1733 if (!true)
1734 {
1735 }
1736 if (!true)
1737 {
1738 }
1739 if (!true)
1740 {
1741 }
1742 if (!true)
1743 {
1744 }
1745 if (!true)
1746 {
1747 }
1748 return 1;
1749 }
1750
1751 // Token: 0x060013D4 RID: 5076 RVA: 0x00029A50 File Offset: 0x00027C50
1752 public static Task Delay(int millisecondsDelay)
1753 {
1754 if (!true)
1755 {
1756 }
1757 Task task;
1758 return task;
1759 }
1760
1761 // Token: 0x060013D5 RID: 5077 RVA: 0x00029A64 File Offset: 0x00027C64
1762 public static Task Delay(int millisecondsDelay, CancellationToken cancellationToken)
1763 {
1764 if (!true)
1765 {
1766 }
1767 Task task;
1768 return task;
1769 }
1770
1771 // Token: 0x060013D6 RID: 5078 RVA: 0x00029A78 File Offset: 0x00027C78
1773 {
1775 return task;
1776 }
1777
1778 // Token: 0x060013D7 RID: 5079 RVA: 0x00029A9C File Offset: 0x00027C9C
1780 {
1781 long num = 0L;
1782 int num2 = 10;
1783 if (num != 0L)
1784 {
1785 throw new OutOfMemoryException();
1786 }
1788 if (num2 == 0)
1789 {
1790 return task;
1791 }
1792 return task;
1793 }
1794
1795 // Token: 0x060013D8 RID: 5080 RVA: 0x00029AEC File Offset: 0x00027CEC
1797 internal static bool AddToActiveTasks(Task task)
1798 {
1799 if (!true)
1800 {
1801 }
1802 if (!true)
1803 {
1804 }
1805 if (!false)
1806 {
1807 return true;
1808 }
1809 throw new OutOfMemoryException();
1810 }
1811
1812 // Token: 0x060013D9 RID: 5081 RVA: 0x00029B1C File Offset: 0x00027D1C
1814 internal static void RemoveFromActiveTasks(int taskId)
1815 {
1816 if (!true)
1817 {
1818 }
1819 if (!true)
1820 {
1821 }
1822 if (true)
1823 {
1824 }
1825 }
1826
1827 // Token: 0x060013DA RID: 5082 RVA: 0x00029B50 File Offset: 0x00027D50
1829 {
1830 }
1831
1832 // Token: 0x060013DB RID: 5083 RVA: 0x00029B60 File Offset: 0x00027D60
1834 {
1835 if (this.CapturedContext != null)
1836 {
1837 if (!true)
1838 {
1839 }
1840 return;
1841 }
1842 this.Execute();
1843 this.Finish(true);
1844 }
1845
1846 // Token: 0x060013DC RID: 5084 RVA: 0x00029B98 File Offset: 0x00027D98
1847 // Note: this type is marked as 'beforefieldinit'.
1848 static Task()
1849 {
1850 }
1851
1852 // Token: 0x04000A59 RID: 2649
1853 internal static int s_taskIdCounter;
1854
1855 // Token: 0x04000A5A RID: 2650
1856 private int m_taskId;
1857
1858 // Token: 0x04000A5B RID: 2651
1860
1861 // Token: 0x04000A5C RID: 2652
1862 internal object m_stateObject;
1863
1864 // Token: 0x04000A5D RID: 2653
1866
1867 // Token: 0x04000A5E RID: 2654
1869
1870 // Token: 0x04000A5F RID: 2655
1871 internal int m_stateFlags;
1872
1873 // Token: 0x04000A60 RID: 2656
1874 private object m_continuationObject;
1875
1876 // Token: 0x04000A61 RID: 2657
1877 private static readonly object s_taskCompletionSentinel;
1878
1879 // Token: 0x04000A62 RID: 2658
1880 internal static bool s_asyncDebuggingEnabled;
1881
1882 // Token: 0x04000A63 RID: 2659
1884
1885 // Token: 0x04000A64 RID: 2660
1887
1888 // Token: 0x04000A65 RID: 2661
1889 [ThreadStatic]
1890 internal static Task t_currentTask;
1891
1892 // Token: 0x04000A66 RID: 2662
1893 [ThreadStatic]
1894 private static StackGuard t_stackGuard;
1895
1896 // Token: 0x04000A67 RID: 2663
1898
1899 // Token: 0x04000A68 RID: 2664
1901 private static readonly TaskFactory <Factory>k__BackingField;
1902
1903 // Token: 0x04000A69 RID: 2665
1905 private static readonly Task <CompletedTask>k__BackingField;
1906
1907 // Token: 0x04000A6A RID: 2666
1909
1910 // Token: 0x04000A6B RID: 2667
1912
1913 // Token: 0x04000A6C RID: 2668
1915
1916 // Token: 0x04000A6D RID: 2669
1918
1919 // Token: 0x04000A6E RID: 2670
1920 private static readonly object s_activeTasksLock;
1921
1922 // Token: 0x02000233 RID: 563
1924 {
1925 // Token: 0x060013DD RID: 5085 RVA: 0x00029BA8 File Offset: 0x00027DA8
1926 internal void SetCompleted()
1927 {
1929 if (completionEvent != null)
1930 {
1932 return;
1933 }
1934 }
1935
1936 // Token: 0x060013DE RID: 5086 RVA: 0x00029BC8 File Offset: 0x00027DC8
1938 {
1939 if (this.m_cancellationRegistration != null)
1940 {
1941 }
1942 }
1943
1944 // Token: 0x060013DF RID: 5087 RVA: 0x00029BF0 File Offset: 0x00027DF0
1946 {
1947 }
1948
1949 // Token: 0x04000A6F RID: 2671
1951
1952 // Token: 0x04000A70 RID: 2672
1954
1955 // Token: 0x04000A71 RID: 2673
1957
1958 // Token: 0x04000A72 RID: 2674
1960
1961 // Token: 0x04000A73 RID: 2675
1963
1964 // Token: 0x04000A74 RID: 2676
1966
1967 // Token: 0x04000A75 RID: 2677
1968 internal int m_completionCountdown = 1;
1969
1970 // Token: 0x04000A76 RID: 2678
1972 }
1973
1974 // Token: 0x02000234 RID: 564
1976 {
1977 // Token: 0x060013E0 RID: 5088 RVA: 0x00029C0C File Offset: 0x00027E0C
1979 {
1980 if (!true)
1981 {
1982 }
1983 long num = 0L;
1984 long num2 = 0L;
1985 base..ctor(num != 0L, (int)num2);
1986 }
1987
1988 // Token: 0x060013E1 RID: 5089 RVA: 0x00029C28 File Offset: 0x00027E28
1990 {
1991 base.Set();
1992 }
1993
1994 // Token: 0x170001F2 RID: 498
1995 // (get) Token: 0x060013E2 RID: 5090 RVA: 0x00029C3C File Offset: 0x00027E3C
1997 {
1998 get
1999 {
2000 }
2001 }
2002 }
2003
2004 // Token: 0x02000235 RID: 565
2005 private sealed class DelayPromise : Task<VoidTaskResult>
2006 {
2007 // Token: 0x060013E3 RID: 5091 RVA: 0x00029C4C File Offset: 0x00027E4C
2009 {
2010 if (true || !true)
2011 {
2012 }
2013 if (!true)
2014 {
2015 }
2016 if (true)
2017 {
2018 if (!true)
2019 {
2020 }
2022 return;
2023 }
2024 }
2025
2026 // Token: 0x060013E4 RID: 5092 RVA: 0x00029C78 File Offset: 0x00027E78
2027 internal void Complete()
2028 {
2029 CancellationToken token = this.Token;
2030 long num = 0L;
2031 bool flag = base.TrySetCanceled(token, num);
2032 }
2033
2034 // Token: 0x04000A77 RID: 2679
2036
2037 // Token: 0x04000A78 RID: 2680
2039
2040 // Token: 0x04000A79 RID: 2681
2041 internal Timer Timer;
2042 }
2043
2044 // Token: 0x02000236 RID: 566
2046 [Serializable]
2047 private sealed class <>c
2048 {
2049 // Token: 0x060013E5 RID: 5093 RVA: 0x00029CCC File Offset: 0x00027ECC
2050 // Note: this type is marked as 'beforefieldinit'.
2051 static <>c()
2052 {
2053 }
2054
2055 // Token: 0x060013E6 RID: 5094 RVA: 0x00029CDC File Offset: 0x00027EDC
2056 public <>c()
2057 {
2058 }
2059
2060 // Token: 0x060013E7 RID: 5095 RVA: 0x00029CF0 File Offset: 0x00027EF0
2061 internal void <Delay>b__247_0(object state)
2062 {
2063 }
2064
2065 // Token: 0x060013E8 RID: 5096 RVA: 0x00029D04 File Offset: 0x00027F04
2066 internal void <Delay>b__247_1(object state)
2067 {
2068 }
2069
2070 // Token: 0x060013E9 RID: 5097 RVA: 0x0000207A File Offset: 0x0000027A
2071 internal Task.ContingentProperties <.cctor>b__271_0()
2072 {
2073 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
2074 }
2075
2076 // Token: 0x060013EA RID: 5098 RVA: 0x00029D18 File Offset: 0x00027F18
2077 internal bool <.cctor>b__271_1(Task t)
2078 {
2079 /*
2080An exception occurred when decompiling this method (060013EA)
2081
2082ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean System.Threading.Tasks.Task/<>c::<.cctor>b__271_1(System.Threading.Tasks.Task)
2083
2084 ---> System.Exception: Basic block has to end with unconditional control flow.
2085{
2086 Block_0:
2087 stloc:int32(var_0_06, ldfld:int32(Task::m_stateFlags, ldloc:Task(t)))
2088}
2089
2090 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
2091 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
2092 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
2093 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
2094 --- End of inner exception stack trace ---
2095 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
2096 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
2097*/;
2098 }
2099
2100 // Token: 0x060013EB RID: 5099 RVA: 0x0000207A File Offset: 0x0000027A
2101 internal bool <.cctor>b__271_2(object tc)
2102 {
2103 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
2104 }
2105
2106 // Token: 0x04000A7A RID: 2682
2107 public static readonly Task.<>c <>9;
2108
2109 // Token: 0x04000A7B RID: 2683
2110 public static Action<object> <>9__247_0;
2111
2112 // Token: 0x04000A7C RID: 2684
2113 public static TimerCallback <>9__247_1;
2114 }
2115 }
2116}
class f__AnonymousType0<< Count > j__TPar
static int TickCount
static void SuppressFinalize(object obj)
Definition GC.cs:116
static ExecutionContext Capture()
static void Exit(object obj)
Definition Monitor.cs:47
static void Enter(object obj)
Definition Monitor.cs:11
static void RemoveFromActiveTasksNonInlined(Task task)
static void AddToActiveTasksNonInlined(Task task)
bool TryRunInline(Task task, bool taskWasPreviouslyQueued)
LowLevelListWithIList< Task > m_exceptionalChildren
Definition Task.2.cs:1971
CancellationTokenRegistration Registration
Definition Task.2.cs:2038
readonly CancellationToken Token
Definition Task.2.cs:2035
DelayPromise(CancellationToken token)
Definition Task.2.cs:2008
void Invoke(Task completingTask)
Definition Task.2.cs:1989
static Task< TResult > FromCancellation< TResult >(CancellationToken cancellationToken)
Definition Task.2.cs:1601
void UpdateExceptionObservedStatus()
Definition Task.2.cs:981
static readonly object s_activeTasksLock
Definition Task.2.cs:1920
bool Wait(int millisecondsTimeout, CancellationToken cancellationToken)
Definition Task.2.cs:1267
void AddException(object exceptionObject, bool representsCancellation)
Definition Task.2.cs:905
bool AddTaskContinuationComplex(object tc, bool addBeforeOthers)
Definition Task.2.cs:1489
static void TaskCancelCallback(object o)
Definition Task.2.cs:87
void Finish(bool bUserDelegateExecuted)
Definition Task.2.cs:1056
static TaskFactory Factory
Definition Task.2.cs:685
TaskCreationOptions Options
Definition Task.2.cs:129
static ContextCallback s_ecCallback
Definition Task.2.cs:1911
static Task< Task > WhenAny(IEnumerable< Task > tasks)
Definition Task.2.cs:1779
TaskScheduler m_taskScheduler
Definition Task.2.cs:1865
Task.ContingentProperties EnsureContingentPropertiesInitializedCore(bool needsProtection)
Definition Task.2.cs:518
static Task Run(Func< Task > function)
Definition Task.2.cs:1684
Task.ContingentProperties m_contingentProperties
Definition Task.2.cs:1883
bool IsWaitNotificationEnabledOrNotRanToCompletion
Definition Task.2.cs:196
Task ContinueWith(Action< Task > continuationAction)
Definition Task.2.cs:1429
static readonly TaskFactory< Factory > k__BackingField
Definition Task.2.cs:1901
virtual void InnerInvoke()
Definition Task.2.cs:1191
ManualResetEventSlim CompletedEvent
Definition Task.2.cs:749
bool AtomicStateUpdate(int newBits, int illegalBits, int oldFlags)
Definition Task.2.cs:172
static void CreationOptionsFromContinuationOptions(TaskContinuationOptions continuationOptions, [Out] TaskCreationOptions creationOptions, [Out] InternalTaskOptions internalOptions)
Definition Task.2.cs:1464
ExceptionDispatchInfo GetCancellationExceptionDispatchInfo()
Definition Task.2.cs:939
void HandleException(Exception unhandledException)
Definition Task.2.cs:1207
bool InternalWait(int millisecondsTimeout, CancellationToken cancellationToken)
Definition Task.2.cs:1308
static Task FromCancellation(CancellationToken cancellationToken)
Definition Task.2.cs:1585
ConfiguredTaskAwaitable ConfigureAwait(bool continueOnCapturedContext)
Definition Task.2.cs:1227
static bool s_asyncDebuggingEnabled
Definition Task.2.cs:1880
Task ContinueWith(Action< Task, object > continuationAction, object state, TaskScheduler scheduler, CancellationToken cancellationToken, TaskContinuationOptions continuationOptions)
Definition Task.2.cs:1455
void AddCompletionAction(ITaskCompletionAction action, bool addBeforeOthers)
Definition Task.2.cs:1484
bool SpinWait(int millisecondsTimeout)
Definition Task.2.cs:1321
void AddCompletionAction(ITaskCompletionAction action)
Definition Task.2.cs:1477
static Task Delay(int millisecondsDelay)
Definition Task.2.cs:1752
static Task InternalCurrentIfAttached(TaskCreationOptions creationOptions)
Definition Task.2.cs:382
TaskScheduler ExecutingTaskScheduler
Definition Task.2.cs:675
bool InternalCancel(bool bCancelNonExecutingOnly)
Definition Task.2.cs:1328
bool Wait(int millisecondsTimeout)
Definition Task.2.cs:1260
void RecordInternalCancellationRequest(CancellationToken tokenToRecord, object cancellationException)
Definition Task.2.cs:1366
Task.ContingentProperties EnsureContingentPropertiesInitialized(bool needsProtection)
Definition Task.2.cs:507
static readonly Action< object > s_taskCancelCallback
Definition Task.2.cs:1886
static readonly Func< Task.ContingentProperties > s_createContingentProperties
Definition Task.2.cs:1897
bool TrySetCanceled(CancellationToken tokenToRecord)
Definition Task.2.cs:96
void NotifyDebuggerOfWaitCompletion()
Definition Task.2.cs:278
Task ContinueWith(Action< Task, object > continuationAction, object state, CancellationToken cancellationToken, TaskContinuationOptions continuationOptions, TaskScheduler scheduler)
Definition Task.2.cs:1449
Task ContinueWith(Action< Task > continuationAction, TaskScheduler scheduler, CancellationToken cancellationToken, TaskContinuationOptions continuationOptions)
Definition Task.2.cs:1440
static Task< TResult > FromResult< TResult >(TResult result)
Definition Task.2.cs:1527
bool TrySetException(object exceptionObject)
Definition Task.2.cs:112
void RemoveContinuation(object continuationObject)
Definition Task.2.cs:1515
void SetContinuationForAwait(Action continuationAction, bool continueOnCapturedContext, bool flowExecutionContext)
Definition Task.2.cs:1233
void RecordInternalCancellationRequest(CancellationToken tokenToRecord)
Definition Task.2.cs:1356
static StackGuard CurrentStackGuard
Definition Task.2.cs:411
static readonly Task< CompletedTask > k__BackingField
Definition Task.2.cs:1905
static bool IsCompletedMethod(int flags)
Definition Task.2.cs:599
void MarkAborted(ThreadAbortException e)
Definition Task.2.cs:1828
void ThrowIfExceptional(bool includeTaskCanceledExceptions)
Definition Task.2.cs:954
AggregateException GetExceptions(bool includeTaskCanceledExceptions)
Definition Task.2.cs:921
bool NotifyDebuggerOfWaitCompletionIfNecessary()
Definition Task.2.cs:186
void ProcessChildCompletion(Task childTask)
Definition Task.2.cs:1121
static Task FromException(Exception exception)
Definition Task.2.cs:1533
void ScheduleAndStart(bool needsProtection)
Definition Task.2.cs:890
static void ExecutionContextCallback(object obj)
Definition Task.2.cs:1183
static Task FromCanceled(CancellationToken cancellationToken)
Definition Task.2.cs:1591
static Task Run(Action action)
Definition Task.2.cs:1659
static Task InternalCurrent
Definition Task.2.cs:353
bool ExecuteEntry(bool bPreventDoubleExecution)
Definition Task.2.cs:1168
static Task< TResult > FromException< TResult >(Exception exception)
Definition Task.2.cs:1560
Task(bool canceled, TaskCreationOptions creationOptions, CancellationToken ct)
Definition Task.2.cs:19
TaskCreationOptions CreationOptions
Definition Task.2.cs:635
static Task< TResult > Run< TResult >(Func< TResult > function)
Definition Task.2.cs:1672
virtual bool ShouldNotifyDebuggerOfWaitCompletion
Definition Task.2.cs:224
TaskAwaiter GetAwaiter()
Definition Task.2.cs:1221
static TaskCreationOptions OptionsMethod(int flags)
Definition Task.2.cs:159
bool AddTaskContinuation(object tc, bool addBeforeOthers)
Definition Task.2.cs:1505
static Task InternalStartNew(Task creatingTask, Delegate action, object state, CancellationToken cancellationToken, TaskScheduler scheduler, TaskCreationOptions options, InternalTaskOptions internalOptions)
Definition Task.2.cs:309
bool TrySetCanceled(CancellationToken tokenToRecord, object cancellationException)
Definition Task.2.cs:103
ReadOnlyCollection< ExceptionDispatchInfo > GetExceptionDispatchInfos()
Definition Task.2.cs:931
void TaskConstructorCore(Delegate action, object state, CancellationToken cancellationToken, TaskCreationOptions creationOptions, InternalTaskOptions internalOptions, TaskScheduler scheduler)
Definition Task.2.cs:54
static readonly Dictionary< int, Task > s_currentActiveTasks
Definition Task.2.cs:1917
static Task CompletedTask
Definition Task.2.cs:717
void AddException(object exceptionObject)
Definition Task.2.cs:898
Task(Delegate action, object state, Task parent, CancellationToken cancellationToken, TaskCreationOptions creationOptions, InternalTaskOptions internalOptions, TaskScheduler scheduler)
Definition Task.2.cs:42
static void RemoveFromActiveTasks(int taskId)
Definition Task.2.cs:1814
void RecordInternalCancellationRequest()
Definition Task.2.cs:1347
static StackGuard t_stackGuard
Definition Task.2.cs:1894
ExecutionContext CapturedContext
Definition Task.2.cs:821
static readonly object s_taskCompletionSentinel
Definition Task.2.cs:1877
bool AtomicStateUpdate(int newBits, int illegalBits)
Definition Task.2.cs:165
virtual void Dispose(bool disposing)
Definition Task.2.cs:871
Task(object state, TaskCreationOptions creationOptions, bool promiseStyle)
Definition Task.2.cs:31
void ContinueWithCore(Task continuationTask, TaskScheduler scheduler, CancellationToken cancellationToken, TaskContinuationOptions options)
Definition Task.2.cs:1471
static Task Run(Func< Task > function, CancellationToken cancellationToken)
Definition Task.2.cs:1694
void SetNotificationForWaitCompletion(bool enabled)
Definition Task.2.cs:180
void ExecuteWithThreadLocal(Task currentTaskSlot)
Definition Task.2.cs:1833
static Task< Task > WhenAny(params Task[] tasks)
Definition Task.2.cs:1772
static Task< TResult > FromCanceled< TResult >(CancellationToken cancellationToken)
Definition Task.2.cs:1607
static Task Delay(int millisecondsDelay, CancellationToken cancellationToken)
Definition Task.2.cs:1762
static bool AddToActiveTasks(Task task)
Definition Task.2.cs:1797
void LogFinishCompletionNotification()
Definition Task.2.cs:1420
static readonly Predicate< object > s_IsTaskContinuationNullPredicate
Definition Task.2.cs:1914
bool SpinThenBlockingWait(int millisecondsTimeout, CancellationToken cancellationToken)
Definition Task.2.cs:1314
static readonly Predicate< Task > s_IsExceptionObservedByParentPredicate
Definition Task.2.cs:1908
void AssignCancellationToken(CancellationToken cancellationToken, Task antecedent, TaskContinuation continuation)
Definition Task.2.cs:74
new Type GetType()
Definition Type.cs:287