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

◆ IEnumerator [8/8]

class<CastIterator> System.Linq.Enumerable.IEnumerator
setprivate

Definition at line 2430 of file Enumerable.cs.

2431 {
2432 // Token: 0x060000DA RID: 218 RVA: 0x00003714 File Offset: 0x00001914
2435 {
2436 this.<>1__state = <>1__state;
2439 }
2440
2441 // Token: 0x060000DB RID: 219 RVA: 0x00003740 File Offset: 0x00001940
2443 void IDisposable.Dispose()
2444 {
2445 int num = this.<>1__state;
2446 }
2447
2448 // Token: 0x060000DC RID: 220 RVA: 0x00003758 File Offset: 0x00001958
2449 private bool MoveNext()
2450 {
2451 int num = this.<>1__state;
2452 if (num == 0)
2453 {
2454 IEnumerator enumerator = this.<>7__wrap1;
2455 this.<>1__state = num;
2456 long value = 0.m_value;
2457 throw new InvalidCastException();
2458 }
2459 throw new OutOfMemoryException();
2460 }
2461
2462 // Token: 0x060000DD RID: 221 RVA: 0x0000379C File Offset: 0x0000199C
2463 private void <>m__Finally1()
2464 {
2465 int num = 1;
2466 this.<>1__state = num;
2467 }
2468
2469 // Token: 0x1700001D RID: 29
2470 // (get) Token: 0x060000DE RID: 222 RVA: 0x000037B4 File Offset: 0x000019B4
2472 {
2474 get
2475 {
2476 /*
2477An exception occurred when decompiling this method (060000DE)
2478
2479ICSharpCode.Decompiler.DecompilerException: Error decompiling TResult System.Linq.Enumerable/<CastIterator>d__99`1::System.Collections.Generic.IEnumerator<TResult>.get_Current()
2480
2481 ---> System.Exception: Basic block has to end with unconditional control flow.
2482{
2483 Block_0:
2484 stloc:IEnumerable(var_0_06, ldfld:IEnumerable('<CastIterator>d__99`1'::source, ldloc:'<CastIterator>d__99`1'(this)))
2485}
2486
2487 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
2488 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
2489 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
2490 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
2491 --- End of inner exception stack trace ---
2492 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
2493 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
2494*/;
2495 }
2496 }
2497
2498 // Token: 0x060000DF RID: 223 RVA: 0x00002050 File Offset: 0x00000250
2500 void IEnumerator.Reset()
2501 {
2502 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
2503 }
2504
2505 // Token: 0x1700001E RID: 30
2506 // (get) Token: 0x060000E0 RID: 224 RVA: 0x00002050 File Offset: 0x00000250
2507 object IEnumerator.Current
2508 {
2510 get
2511 {
2512 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
2513 }
2514 }
2515
2516 // Token: 0x060000E1 RID: 225 RVA: 0x000037C8 File Offset: 0x000019C8
2519 {
2520 /*
2521An exception occurred when decompiling this method (060000E1)
2522
2523ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Collections.Generic.IEnumerator`1<TResult> System.Linq.Enumerable/<CastIterator>d__99`1::System.Collections.Generic.IEnumerable<TResult>.GetEnumerator()
2524
2525 ---> System.Exception: Basic block has to end with unconditional control flow.
2526{
2527 Block_0:
2528 stloc:int32(var_0_06, ldfld:int32('<CastIterator>d__99`1'::<>1__state, ldloc:'<CastIterator>d__99`1'(this)))
2529 stloc:IEnumerable(var_1_0D, ldfld:IEnumerable('<CastIterator>d__99`1'::<>3__source, ldloc:'<CastIterator>d__99`1'(this)))
2530 stloc:int32(var_3_15, callgetter:int32(Environment::get_CurrentManagedThreadId))
2531 stloc:IEnumerable(var_4_1C, ldfld:IEnumerable('<CastIterator>d__99`1'::source, ldloc:'<CastIterator>d__99`1'(this)))
2532 stloc:IEnumerable(var_5_24, ldfld:IEnumerable('<CastIterator>d__99`1'::source, ldloc:'<CastIterator>d__99`1'(this)))
2533}
2534
2535 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
2536 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
2537 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
2538 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
2539 --- End of inner exception stack trace ---
2540 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
2541 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
2542*/;
2543 }
2544
2545 // Token: 0x060000E2 RID: 226 RVA: 0x00002050 File Offset: 0x00000250
2548 {
2549 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
2550 }
2551
2552 // Token: 0x0400006B RID: 107
2553 private int <>1__state;
2554
2555 // Token: 0x0400006C RID: 108
2556 private TResult <>2__current;
2557
2558 // Token: 0x0400006D RID: 109
2559 private int <>l__initialThreadId;
2560
2561 // Token: 0x0400006E RID: 110
2562 private IEnumerable source;
2563
2564 // Token: 0x0400006F RID: 111
2565 public IEnumerable <>3__source;
2566
2567 // Token: 0x04000070 RID: 112
2568 private IEnumerator <>7__wrap1;
2569 }
class f__AnonymousType0<< Count > j__TPar
static int CurrentManagedThreadId