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
RuntimeResourceSet.cs
Go to the documentation of this file.
1using System;
4using System.IO;
5
6namespace System.Resources
7{
8 // Token: 0x020004AC RID: 1196
9 internal sealed class RuntimeResourceSet : ResourceSet, IEnumerable
10 {
11 // Token: 0x060022D5 RID: 8917 RVA: 0x0004E294 File Offset: 0x0004C494
12 internal RuntimeResourceSet(string fileName)
13 {
14 if (!true)
15 {
16 }
18 }
19
20 // Token: 0x060022D6 RID: 8918 RVA: 0x0004E2B4 File Offset: 0x0004C4B4
21 internal RuntimeResourceSet(Stream stream)
22 {
23 if (!true)
24 {
25 }
26 }
27
28 // Token: 0x060022D7 RID: 8919 RVA: 0x0004E2CC File Offset: 0x0004C4CC
29 protected override void Dispose(bool disposing)
30 {
31 if (this.Reader != null)
32 {
34 if (defaultReader == null || defaultReader._store != null)
35 {
36 }
37 base.Dispose(true);
38 long num = 0L;
39 long num2 = 0L;
40 if (num != 0L)
41 {
42 throw new OutOfMemoryException();
43 }
44 if (5 == 0)
45 {
46 base.Dispose(num2 != 0L);
47 }
48 }
49 }
50
51 // Token: 0x060022D8 RID: 8920 RVA: 0x0004E320 File Offset: 0x0004C520
53 {
54 return this.GetEnumeratorHelper();
55 }
56
57 // Token: 0x060022D9 RID: 8921 RVA: 0x0004E334 File Offset: 0x0004C534
59 {
60 /*
61An exception occurred when decompiling this method (060022D9)
62
63ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Collections.IEnumerator System.Resources.RuntimeResourceSet::System.Collections.IEnumerable.GetEnumerator()
64
65 ---> System.Exception: Basic block has to end with unconditional control flow.
66{
67 Block_0:
68 stloc:IDictionaryEnumerator(var_0_06, call:IDictionaryEnumerator(RuntimeResourceSet::GetEnumeratorHelper, ldloc:RuntimeResourceSet(this)))
69}
70
71 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
72 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
73 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
74 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
75 --- End of inner exception stack trace ---
76 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
77 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
78*/;
79 }
80
81 // Token: 0x060022DA RID: 8922 RVA: 0x0004E348 File Offset: 0x0004C548
83 {
84 /*
85An exception occurred when decompiling this method (060022DA)
86
87ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Collections.IDictionaryEnumerator System.Resources.RuntimeResourceSet::GetEnumeratorHelper()
88
89 ---> System.Exception: Basic block has to end with unconditional control flow.
90{
91 Block_1:
92 brtrue(IL_0000, logicnot:bool(ldloc:class System.Collections.Generic.Dictionary`2<string, valuetype System.Resources.ResourceLocator>[exp:bool](var_0_0E)))
93}
94
95 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
96 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
97 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
98 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
99 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
100 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
101 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
102 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
103 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
104 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
105 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
106 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
107 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
108 --- End of inner exception stack trace ---
109 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
110 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
111*/;
112 }
113
114 // Token: 0x060022DB RID: 8923 RVA: 0x0004E36C File Offset: 0x0004C56C
115 public override string GetString(string key)
116 {
117 long num = 0L;
118 if (this.GetObject(key, num != 0L, true) != null)
119 {
120 }
121 throw new InvalidCastException();
122 }
123
124 // Token: 0x060022DC RID: 8924 RVA: 0x0004E38C File Offset: 0x0004C58C
125 public override string GetString(string key, bool ignoreCase)
126 {
127 if (this.GetObject(key, ignoreCase, true) != null)
128 {
129 }
130 throw new InvalidCastException();
131 }
132
133 // Token: 0x060022DD RID: 8925 RVA: 0x0004E3AC File Offset: 0x0004C5AC
134 public override object GetObject(string key)
135 {
136 long num = 0L;
137 long num2 = 0L;
138 return this.GetObject(key, num != 0L, num2 != 0L);
139 }
140
141 // Token: 0x060022DE RID: 8926 RVA: 0x0004E3C8 File Offset: 0x0004C5C8
142 public override object GetObject(string key, bool ignoreCase)
143 {
144 long num = 0L;
145 return this.GetObject(key, ignoreCase, num != 0L);
146 }
147
148 // Token: 0x060022DF RID: 8927 RVA: 0x0004E3E0 File Offset: 0x0004C5E0
149 private object GetObject(string key, bool ignoreCase, bool isString)
150 {
151 if (key != null)
152 {
153 if (this.Reader == null || this._resCache == null)
154 {
155 throw new InvalidCastException();
156 }
157 if (this.Reader == null)
158 {
159 throw new OutOfMemoryException();
160 }
161 if (this._defaultReader != null)
162 {
164 int num = this._defaultReader.FindPosForResource(key);
165 string text = this._defaultReader.LoadString(num);
166 object obj;
167 return obj;
168 }
169 if (!this._haveReadFromReader)
170 {
172 if (caseInsensitiveTable == null)
173 {
174 if (caseInsensitiveTable == null)
175 {
176 }
177 if (!true)
178 {
179 }
180 }
182 int dataPosition;
183 if (defaultReader != null)
184 {
186 int num2 = 1;
188 int numResources = enumeratorInternal._reader._numResources;
191 if (enumeratorInternal.Key != null)
192 {
193 }
194 dataPosition = enumeratorInternal._dataPosition;
196 int num3 = 32768;
198 }
199 IResourceReader reader = this.Reader;
200 if (dataPosition != 0)
201 {
202 }
203 if (reader != null)
204 {
205 }
209 int num4 = 1;
210 this._haveReadFromReader = num4 != 0;
211 }
212 if (this._defaultReader != null)
213 {
216 object obj2;
217 return obj2;
218 }
219 int num5 = 1;
222 long num6 = 0L;
223 if (num5 != 0)
224 {
225 }
226 if (num6 == 0L)
227 {
228 object obj3;
229 return obj3;
230 }
231 }
232 throw new OutOfMemoryException();
233 }
234
235 // Token: 0x060022E0 RID: 8928 RVA: 0x0004E5B0 File Offset: 0x0004C7B0
237 {
238 if (resLocation != null)
239 {
240 }
241 IResourceReader reader = this.Reader;
243 long num = 0L;
244 if (true)
245 {
246 }
247 if (num == 0L)
248 {
249 while (3 != 0)
250 {
251 }
252 }
253 throw new OutOfMemoryException();
254 }
255
256 // Token: 0x04001317 RID: 4887
257 internal const int Version = 2;
258
259 // Token: 0x04001318 RID: 4888
261
262 // Token: 0x04001319 RID: 4889
264
265 // Token: 0x0400131A RID: 4890
267
268 // Token: 0x0400131B RID: 4891
270 }
271}
class f__AnonymousType0<< Count > j__TPar
override IDictionaryEnumerator GetEnumerator()
override object GetObject(string key)
override string GetString(string key)
override object GetObject(string key, bool ignoreCase)
object ResolveResourceLocator(ResourceLocator resLocation, string key, Dictionary< string, ResourceLocator > copyOfCache, bool keyInWrongCase)
IDictionaryEnumerator GetEnumeratorHelper()
Dictionary< string, ResourceLocator > _resCache
Dictionary< string, ResourceLocator > _caseInsensitiveTable
object GetObject(string key, bool ignoreCase, bool isString)
override void Dispose(bool disposing)
override string GetString(string key, bool ignoreCase)