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

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

Definition at line 1685 of file Enumerable.cs.

1686 {
1687 // Token: 0x060000AC RID: 172 RVA: 0x00003218 File Offset: 0x00001418
1690 {
1691 this.<>1__state = <>1__state;
1694 }
1695
1696 // Token: 0x060000AD RID: 173 RVA: 0x00003244 File Offset: 0x00001444
1698 void IDisposable.Dispose()
1699 {
1700 int num = this.<>1__state;
1701 }
1702
1703 // Token: 0x060000AE RID: 174 RVA: 0x0000325C File Offset: 0x0000145C
1704 private bool MoveNext()
1705 {
1706 if (this.<>1__state == 0)
1707 {
1708 int num = this.<>3__count;
1709 IEnumerable enumerable = this.<>3__source;
1710 long value = 0.m_value;
1711 }
1712 throw new OutOfMemoryException();
1713 }
1714
1715 // Token: 0x060000AF RID: 175 RVA: 0x00003298 File Offset: 0x00001498
1716 private void <>m__Finally1()
1717 {
1718 int num = 1;
1719 this.<>1__state = num;
1720 }
1721
1722 // Token: 0x17000013 RID: 19
1723 // (get) Token: 0x060000B0 RID: 176 RVA: 0x00002050 File Offset: 0x00000250
1725 {
1727 get
1728 {
1729 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
1730 }
1731 }
1732
1733 // Token: 0x060000B1 RID: 177 RVA: 0x00002050 File Offset: 0x00000250
1735 void IEnumerator.Reset()
1736 {
1737 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
1738 }
1739
1740 // Token: 0x17000014 RID: 20
1741 // (get) Token: 0x060000B2 RID: 178 RVA: 0x00002050 File Offset: 0x00000250
1742 object IEnumerator.Current
1743 {
1745 get
1746 {
1747 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
1748 }
1749 }
1750
1751 // Token: 0x060000B3 RID: 179 RVA: 0x000032B0 File Offset: 0x000014B0
1754 {
1755 /*
1756An exception occurred when decompiling this method (060000B3)
1757
1758ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Collections.Generic.IEnumerator`1<TSource> System.Linq.Enumerable/<TakeIterator>d__25`1::System.Collections.Generic.IEnumerable<TSource>.GetEnumerator()
1759
1760 ---> System.Exception: Basic block has to end with unconditional control flow.
1761{
1762 Block_0:
1763 stloc:int32(var_0_06, ldfld:int32('<TakeIterator>d__25`1'::<>1__state, ldloc:'<TakeIterator>d__25`1'(this)))
1764 stloc:int32(var_1_0D, ldfld:int32('<TakeIterator>d__25`1'::count, ldloc:'<TakeIterator>d__25`1'(this)))
1765 stloc:int32(var_3_15, callgetter:int32(Environment::get_CurrentManagedThreadId))
1766 stloc:int32(var_4_1C, ldfld:int32('<TakeIterator>d__25`1'::count, ldloc:'<TakeIterator>d__25`1'(this)))
1767 stloc:int32(var_5_24, ldfld:int32('<TakeIterator>d__25`1'::count, ldloc:'<TakeIterator>d__25`1'(this)))
1768 stloc:IEnumerator`1(var_6_2C, ldfld:class [mscorlib]System.Collections.Generic.IEnumerator`1<!TSource>[exp:IEnumerator`1]('<TakeIterator>d__25`1'::<>7__wrap1, ldloc:'<TakeIterator>d__25`1'(this)))
1769 stloc:IEnumerable`1(var_7_34, ldfld:class [mscorlib]System.Collections.Generic.IEnumerable`1<!TSource>[exp:IEnumerable`1]('<TakeIterator>d__25`1'::source, ldloc:'<TakeIterator>d__25`1'(this)))
1770}
1771
1772 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
1773 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
1774 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
1775 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
1776 --- End of inner exception stack trace ---
1777 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
1778 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
1779*/;
1780 }
1781
1782 // Token: 0x060000B4 RID: 180 RVA: 0x00002050 File Offset: 0x00000250
1785 {
1786 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
1787 }
1788
1789 // Token: 0x0400003E RID: 62
1790 private int <>1__state;
1791
1792 // Token: 0x0400003F RID: 63
1793 private TSource <>2__current;
1794
1795 // Token: 0x04000040 RID: 64
1796 private int <>l__initialThreadId;
1797
1798 // Token: 0x04000041 RID: 65
1799 private int count;
1800
1801 // Token: 0x04000042 RID: 66
1802 public int <>3__count;
1803
1804 // Token: 0x04000043 RID: 67
1806
1807 // Token: 0x04000044 RID: 68
1809
1810 // Token: 0x04000045 RID: 69
1811 private IEnumerator<TSource> <>7__wrap1;
1812 }
class f__AnonymousType0<< Count > j__TPar
static int CurrentManagedThreadId