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
CharEnumerator.cs
Go to the documentation of this file.
1using System;
4
5namespace System
6{
7 // Token: 0x02000096 RID: 150
10 {
11 // Token: 0x060004A6 RID: 1190 RVA: 0x0000D32C File Offset: 0x0000B52C
12 internal CharEnumerator(string str)
13 {
14 this._str = str;
15 }
16
17 // Token: 0x060004A7 RID: 1191 RVA: 0x0000D348 File Offset: 0x0000B548
18 public object Clone()
19 {
20 return base.MemberwiseClone();
21 }
22
23 // Token: 0x060004A8 RID: 1192 RVA: 0x0000D35C File Offset: 0x0000B55C
24 public bool MoveNext()
25 {
26 /*
27An exception occurred when decompiling this method (060004A8)
28
29ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean System.CharEnumerator::MoveNext()
30
31 ---> System.Exception: Basic block has to end with unconditional control flow.
32{
33 Block_0:
34 stloc:string(var_0_06, ldfld:string(CharEnumerator::_str, ldloc:CharEnumerator(this)))
35 stloc:int32(var_1_0D, ldfld:int32(CharEnumerator::_index, ldloc:CharEnumerator(this)))
36 stloc:int32(var_2_14, ldfld:int32(string::_stringLength, ldloc:string(var_0_06)))
37 stfld:char(CharEnumerator::_currentElement, ldloc:CharEnumerator(this), ldloc:char(var_3))
38 stfld:int32(CharEnumerator::_index, ldloc:CharEnumerator(this), ldloc:int32(var_2_14))
39}
40
41 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
42 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
43 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
44 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
45 --- End of inner exception stack trace ---
46 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
47 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
48*/;
49 }
50
51 // Token: 0x060004A9 RID: 1193 RVA: 0x0000D394 File Offset: 0x0000B594
52 public void Dispose()
53 {
54 string str = this._str;
55 if (str != null)
56 {
57 int stringLength = str._stringLength;
59 }
60 }
61
62 // Token: 0x17000066 RID: 102
63 // (get) Token: 0x060004AA RID: 1194 RVA: 0x0000D3BC File Offset: 0x0000B5BC
65 {
66 get
67 {
68 /*
69An exception occurred when decompiling this method (060004AA)
70
71ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Object System.CharEnumerator::System.Collections.IEnumerator.get_Current()
72
73 ---> System.Exception: Basic block has to end with unconditional control flow.
74{
75 Block_0:
76 stloc:char(var_0_06, callgetter:char(CharEnumerator::get_Current, ldloc:CharEnumerator(this)))
77}
78
79 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
80 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
81 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
82 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
83 --- End of inner exception stack trace ---
84 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
85 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
86*/;
87 }
88 }
89
90 // Token: 0x17000067 RID: 103
91 // (get) Token: 0x060004AB RID: 1195 RVA: 0x0000D3D0 File Offset: 0x0000B5D0
92 public char Current
93 {
94 get
95 {
96 int index = this._index;
97 int stringLength = this._str._stringLength;
98 return this._currentElement;
99 }
100 }
101
102 // Token: 0x060004AC RID: 1196 RVA: 0x0000D3FC File Offset: 0x0000B5FC
103 public void Reset()
104 {
105 }
106
107 // Token: 0x060004AD RID: 1197 RVA: 0x0000D40C File Offset: 0x0000B60C
108 internal CharEnumerator()
109 {
110 throw new NotSupportedException();
111 }
112
113 // Token: 0x04000214 RID: 532
114 private string _str;
115
116 // Token: 0x04000215 RID: 533
117 private int _index;
118
119 // Token: 0x04000216 RID: 534
120 private char _currentElement;
121 }
122}
class f__AnonymousType0<< Count > j__TPar
object IEnumerator. Current