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

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

Definition at line 1321 of file Enumerable.cs.

1322 {
1323 // Token: 0x06000095 RID: 149 RVA: 0x00002FBC File Offset: 0x000011BC
1326 {
1327 this.<>1__state = <>1__state;
1330 }
1331
1332 // Token: 0x06000096 RID: 150 RVA: 0x00002FE8 File Offset: 0x000011E8
1334 void IDisposable.Dispose()
1335 {
1336 int num = this.<>1__state;
1337 }
1338
1339 // Token: 0x06000097 RID: 151 RVA: 0x00003000 File Offset: 0x00001200
1340 private bool MoveNext()
1341 {
1342 int num = this.<>1__state;
1343 if (num == 0)
1344 {
1345 this.<>1__state = num;
1346 IEnumerable enumerable = this.<>3__source;
1347 long value = 0.m_value;
1348 throw new OverflowException();
1349 }
1350 throw new OutOfMemoryException();
1351 }
1352
1353 // Token: 0x06000098 RID: 152 RVA: 0x00003048 File Offset: 0x00001248
1354 private void <>m__Finally1()
1355 {
1356 int num = 1;
1357 this.<>1__state = num;
1358 }
1359
1360 // Token: 0x1700000F RID: 15
1361 // (get) Token: 0x06000099 RID: 153 RVA: 0x00002050 File Offset: 0x00000250
1363 {
1365 get
1366 {
1367 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
1368 }
1369 }
1370
1371 // Token: 0x0600009A RID: 154 RVA: 0x00002050 File Offset: 0x00000250
1373 void IEnumerator.Reset()
1374 {
1375 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
1376 }
1377
1378 // Token: 0x17000010 RID: 16
1379 // (get) Token: 0x0600009B RID: 155 RVA: 0x00002050 File Offset: 0x00000250
1380 object IEnumerator.Current
1381 {
1383 get
1384 {
1385 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
1386 }
1387 }
1388
1389 // Token: 0x0600009C RID: 156 RVA: 0x00003060 File Offset: 0x00001260
1392 {
1393 /*
1394An exception occurred when decompiling this method (0600009C)
1395
1396ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Collections.Generic.IEnumerator`1<TResult> System.Linq.Enumerable/<SelectIterator>d__5`2::System.Collections.Generic.IEnumerable<TResult>.GetEnumerator()
1397
1398 ---> System.Exception: Basic block has to end with unconditional control flow.
1399{
1400 Block_0:
1401 stloc:int32(var_0_06, ldfld:int32('<SelectIterator>d__5`2'::<>1__state, ldloc:'<SelectIterator>d__5`2'(this)))
1402 stloc:IEnumerable`1(var_1_0D, ldfld:class [mscorlib]System.Collections.Generic.IEnumerable`1<!TSource>[exp:IEnumerable`1]('<SelectIterator>d__5`2'::source, ldloc:'<SelectIterator>d__5`2'(this)))
1403 stloc:int32(var_3_15, callgetter:int32(Environment::get_CurrentManagedThreadId))
1404 stloc:IEnumerable`1(var_4_1C, ldfld:class [mscorlib]System.Collections.Generic.IEnumerable`1<!TSource>[exp:IEnumerable`1]('<SelectIterator>d__5`2'::source, ldloc:'<SelectIterator>d__5`2'(this)))
1405 stloc:IEnumerable`1(var_5_24, ldfld:class [mscorlib]System.Collections.Generic.IEnumerable`1<!TSource>[exp:IEnumerable`1]('<SelectIterator>d__5`2'::source, ldloc:'<SelectIterator>d__5`2'(this)))
1406 stloc:Func`3(var_6_2C, ldfld:class [mscorlib]System.Func`3<!TSource, int32, !TResult>[exp:Func`3]('<SelectIterator>d__5`2'::selector, ldloc:'<SelectIterator>d__5`2'(this)))
1407 stloc:int32(var_7_34, ldfld:int32('<SelectIterator>d__5`2'::<index>5__2, ldloc:'<SelectIterator>d__5`2'(this)))
1408}
1409
1410 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
1411 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
1412 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
1413 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
1414 --- End of inner exception stack trace ---
1415 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
1416 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
1417*/;
1418 }
1419
1420 // Token: 0x0600009D RID: 157 RVA: 0x00002050 File Offset: 0x00000250
1423 {
1424 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
1425 }
1426
1427 // Token: 0x04000028 RID: 40
1428 private int <>1__state;
1429
1430 // Token: 0x04000029 RID: 41
1431 private TResult <>2__current;
1432
1433 // Token: 0x0400002A RID: 42
1434 private int <>l__initialThreadId;
1435
1436 // Token: 0x0400002B RID: 43
1438
1439 // Token: 0x0400002C RID: 44
1441
1442 // Token: 0x0400002D RID: 45
1443 private Func<TSource, int, TResult> selector;
1444
1445 // Token: 0x0400002E RID: 46
1447
1448 // Token: 0x0400002F RID: 47
1449 private int <index>5__2;
1450
1451 // Token: 0x04000030 RID: 48
1452 private IEnumerator<TSource> <>7__wrap2;
1453 }
class f__AnonymousType0<< Count > j__TPar
static int CurrentManagedThreadId