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 [2/8]

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

Definition at line 1539 of file Enumerable.cs.

1540 {
1541 // Token: 0x060000A2 RID: 162 RVA: 0x00003104 File Offset: 0x00001304
1544 {
1545 this.<>1__state = <>1__state;
1548 }
1549
1550 // Token: 0x060000A3 RID: 163 RVA: 0x00003130 File Offset: 0x00001330
1552 void IDisposable.Dispose()
1553 {
1554 int num = this.<>1__state;
1555 }
1556
1557 // Token: 0x060000A4 RID: 164 RVA: 0x00003160 File Offset: 0x00001360
1558 private bool MoveNext()
1559 {
1560 int num = this.<>1__state;
1561 if (num == 0)
1562 {
1563 this.<>1__state = num;
1564 IEnumerable enumerable = this.<>3__source;
1565 }
1566 throw new OutOfMemoryException();
1567 }
1568
1569 // Token: 0x060000A5 RID: 165 RVA: 0x00003198 File Offset: 0x00001398
1570 private void <>m__Finally1()
1571 {
1572 int num = 1;
1573 IEnumerator enumerator = this.<>7__wrap2;
1574 this.<>1__state = num;
1575 if (enumerator != null)
1576 {
1577 return;
1578 }
1579 }
1580
1581 // Token: 0x060000A6 RID: 166 RVA: 0x000031BC File Offset: 0x000013BC
1582 private void <>m__Finally2()
1583 {
1584 int num = 1;
1585 this.<>1__state = num;
1586 }
1587
1588 // Token: 0x17000011 RID: 17
1589 // (get) Token: 0x060000A7 RID: 167 RVA: 0x00002050 File Offset: 0x00000250
1591 {
1593 get
1594 {
1595 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
1596 }
1597 }
1598
1599 // Token: 0x060000A8 RID: 168 RVA: 0x00002050 File Offset: 0x00000250
1601 void IEnumerator.Reset()
1602 {
1603 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
1604 }
1605
1606 // Token: 0x17000012 RID: 18
1607 // (get) Token: 0x060000A9 RID: 169 RVA: 0x00002050 File Offset: 0x00000250
1608 object IEnumerator.Current
1609 {
1611 get
1612 {
1613 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
1614 }
1615 }
1616
1617 // Token: 0x060000AA RID: 170 RVA: 0x000031D4 File Offset: 0x000013D4
1620 {
1621 /*
1622An exception occurred when decompiling this method (060000AA)
1623
1624ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Collections.Generic.IEnumerator`1<TResult> System.Linq.Enumerable/<SelectManyIterator>d__17`2::System.Collections.Generic.IEnumerable<TResult>.GetEnumerator()
1625
1626 ---> System.Exception: Basic block has to end with unconditional control flow.
1627{
1628 Block_0:
1629 stloc:int32(var_0_06, ldfld:int32('<SelectManyIterator>d__17`2'::<>1__state, ldloc:'<SelectManyIterator>d__17`2'(this)))
1630 stloc:IEnumerable`1(var_1_0D, ldfld:class [mscorlib]System.Collections.Generic.IEnumerable`1<!TSource>[exp:IEnumerable`1]('<SelectManyIterator>d__17`2'::source, ldloc:'<SelectManyIterator>d__17`2'(this)))
1631 stloc:int32(var_3_15, callgetter:int32(Environment::get_CurrentManagedThreadId))
1632 stloc:IEnumerable`1(var_4_1C, ldfld:class [mscorlib]System.Collections.Generic.IEnumerable`1<!TSource>[exp:IEnumerable`1]('<SelectManyIterator>d__17`2'::source, ldloc:'<SelectManyIterator>d__17`2'(this)))
1633 stloc:IEnumerable`1(var_5_24, ldfld:class [mscorlib]System.Collections.Generic.IEnumerable`1<!TSource>[exp:IEnumerable`1]('<SelectManyIterator>d__17`2'::source, ldloc:'<SelectManyIterator>d__17`2'(this)))
1634 stloc:Func`2(var_6_2C, ldfld:class [mscorlib]System.Func`2<!TSource, class [mscorlib]System.Collections.Generic.IEnumerable`1<!TResult>>[exp:Func`2]('<SelectManyIterator>d__17`2'::selector, ldloc:'<SelectManyIterator>d__17`2'(this)))
1635 stloc:IEnumerator`1(var_7_34, ldfld:class [mscorlib]System.Collections.Generic.IEnumerator`1<!TSource>[exp:IEnumerator`1]('<SelectManyIterator>d__17`2'::<>7__wrap1, ldloc:'<SelectManyIterator>d__17`2'(this)))
1636}
1637
1638 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
1639 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
1640 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
1641 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
1642 --- End of inner exception stack trace ---
1643 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
1644 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
1645*/;
1646 }
1647
1648 // Token: 0x060000AB RID: 171 RVA: 0x00002050 File Offset: 0x00000250
1651 {
1652 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
1653 }
1654
1655 // Token: 0x04000035 RID: 53
1656 private int <>1__state;
1657
1658 // Token: 0x04000036 RID: 54
1659 private TResult <>2__current;
1660
1661 // Token: 0x04000037 RID: 55
1662 private int <>l__initialThreadId;
1663
1664 // Token: 0x04000038 RID: 56
1666
1667 // Token: 0x04000039 RID: 57
1669
1670 // Token: 0x0400003A RID: 58
1671 private Func<TSource, IEnumerable<TResult>> selector;
1672
1673 // Token: 0x0400003B RID: 59
1675
1676 // Token: 0x0400003C RID: 60
1677 private IEnumerator<TSource> <>7__wrap1;
1678
1679 // Token: 0x0400003D RID: 61
1680 private IEnumerator<TResult> <>7__wrap2;
1681 }
class f__AnonymousType0<< Count > j__TPar
static int CurrentManagedThreadId