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

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

Definition at line 2145 of file Enumerable.cs.

2146 {
2147 // Token: 0x060000C8 RID: 200 RVA: 0x00003520 File Offset: 0x00001720
2150 {
2151 this.<>1__state = <>1__state;
2154 }
2155
2156 // Token: 0x060000C9 RID: 201 RVA: 0x0000354C File Offset: 0x0000174C
2158 void IDisposable.Dispose()
2159 {
2160 int num = this.<>1__state;
2161 }
2162
2163 // Token: 0x060000CA RID: 202 RVA: 0x00003564 File Offset: 0x00001764
2164 private bool MoveNext()
2165 {
2166 int num = this.<>1__state;
2167 if (num == 0)
2168 {
2169 this.<>1__state = num;
2171 long num2 = 0L;
2172 int num3 = 7;
2173 if (equalityComparer != null)
2174 {
2175 }
2176 if (num2 != 0L || num3 == 0)
2177 {
2178 throw new OutOfMemoryException();
2179 }
2180 }
2181 throw new OutOfMemoryException();
2182 }
2183
2184 // Token: 0x060000CB RID: 203 RVA: 0x000035C4 File Offset: 0x000017C4
2185 private void <>m__Finally1()
2186 {
2187 int num = 1;
2188 this.<>1__state = num;
2189 }
2190
2191 // Token: 0x17000019 RID: 25
2192 // (get) Token: 0x060000CC RID: 204 RVA: 0x00002050 File Offset: 0x00000250
2194 {
2196 get
2197 {
2198 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
2199 }
2200 }
2201
2202 // Token: 0x060000CD RID: 205 RVA: 0x00002050 File Offset: 0x00000250
2204 void IEnumerator.Reset()
2205 {
2206 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
2207 }
2208
2209 // Token: 0x1700001A RID: 26
2210 // (get) Token: 0x060000CE RID: 206 RVA: 0x00002050 File Offset: 0x00000250
2211 object IEnumerator.Current
2212 {
2214 get
2215 {
2216 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
2217 }
2218 }
2219
2220 // Token: 0x060000CF RID: 207 RVA: 0x000035DC File Offset: 0x000017DC
2223 {
2224 /*
2225An exception occurred when decompiling this method (060000CF)
2226
2227ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Collections.Generic.IEnumerator`1<TSource> System.Linq.Enumerable/<ExceptIterator>d__77`1::System.Collections.Generic.IEnumerable<TSource>.GetEnumerator()
2228
2229 ---> System.Exception: Basic block has to end with unconditional control flow.
2230{
2231 Block_0:
2232 stloc:int32(var_0_06, ldfld:int32('<ExceptIterator>d__77`1'::<>1__state, ldloc:'<ExceptIterator>d__77`1'(this)))
2233 stloc:IEqualityComparer`1(var_1_0D, ldfld:class [mscorlib]System.Collections.Generic.IEqualityComparer`1<!TSource>[exp:IEqualityComparer`1]('<ExceptIterator>d__77`1'::comparer, ldloc:'<ExceptIterator>d__77`1'(this)))
2234 stloc:int32(var_3_15, callgetter:int32(Environment::get_CurrentManagedThreadId))
2235 stloc:IEqualityComparer`1(var_4_1C, ldfld:class [mscorlib]System.Collections.Generic.IEqualityComparer`1<!TSource>[exp:IEqualityComparer`1]('<ExceptIterator>d__77`1'::comparer, ldloc:'<ExceptIterator>d__77`1'(this)))
2236 stloc:IEqualityComparer`1(var_5_24, ldfld:class [mscorlib]System.Collections.Generic.IEqualityComparer`1<!TSource>[exp:IEqualityComparer`1]('<ExceptIterator>d__77`1'::comparer, ldloc:'<ExceptIterator>d__77`1'(this)))
2237 stloc:Set`1(var_6_2C, ldfld:class System.Linq.Set`1<!TSource>[exp:Set`1]('<ExceptIterator>d__77`1'::<set>5__2, ldloc:'<ExceptIterator>d__77`1'(this)))
2238 stloc:IEnumerable`1(var_7_34, ldfld:class [mscorlib]System.Collections.Generic.IEnumerable`1<!TSource>[exp:IEnumerable`1]('<ExceptIterator>d__77`1'::first, ldloc:'<ExceptIterator>d__77`1'(this)))
2239 stloc:IEnumerable`1(var_8_3C, ldfld:class [mscorlib]System.Collections.Generic.IEnumerable`1<!TSource>[exp:IEnumerable`1]('<ExceptIterator>d__77`1'::second, ldloc:'<ExceptIterator>d__77`1'(this)))
2240}
2241
2242 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
2243 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
2244 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
2245 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
2246 --- End of inner exception stack trace ---
2247 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
2248 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
2249*/;
2250 }
2251
2252 // Token: 0x060000D0 RID: 208 RVA: 0x00002050 File Offset: 0x00000250
2255 {
2256 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
2257 }
2258
2259 // Token: 0x0400005A RID: 90
2260 private int <>1__state;
2261
2262 // Token: 0x0400005B RID: 91
2263 private TSource <>2__current;
2264
2265 // Token: 0x0400005C RID: 92
2266 private int <>l__initialThreadId;
2267
2268 // Token: 0x0400005D RID: 93
2270
2271 // Token: 0x0400005E RID: 94
2273
2274 // Token: 0x0400005F RID: 95
2275 private IEnumerable<TSource> second;
2276
2277 // Token: 0x04000060 RID: 96
2279
2280 // Token: 0x04000061 RID: 97
2282
2283 // Token: 0x04000062 RID: 98
2284 public IEnumerable<TSource> <>3__first;
2285
2286 // Token: 0x04000063 RID: 99
2287 private Set<TSource> <set>5__2;
2288
2289 // Token: 0x04000064 RID: 100
2290 private IEnumerator<TSource> <>7__wrap2;
2291 }
class f__AnonymousType0<< Count > j__TPar
static int CurrentManagedThreadId