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
RegionInfo.cs
Go to the documentation of this file.
1using System;
4
6{
7 // Token: 0x020005C6 RID: 1478
8 [ComVisible(true)]
10 [StructLayout(0)]
11 public class RegionInfo
12 {
13 // Token: 0x170006D9 RID: 1753
14 // (get) Token: 0x06002D35 RID: 11573 RVA: 0x00064240 File Offset: 0x00062440
16 {
17 get
18 {
19 /*
20An exception occurred when decompiling this method (06002D35)
21
22ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Globalization.RegionInfo System.Globalization.RegionInfo::get_CurrentRegion()
23
24 ---> System.Exception: Basic block has to end with unconditional control flow.
25{
26 IL_0000:
27 brtrue(IL_0000, logicnot:bool(callgetter:CultureInfo[exp:bool](CultureInfo::get_CurrentCulture)))
28}
29
30 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
31 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
32 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
33 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
34 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
35 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
36 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
37 --- End of inner exception stack trace ---
38 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
39 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
40*/;
41 }
42 }
43
44 // Token: 0x06002D36 RID: 11574 RVA: 0x00064258 File Offset: 0x00062458
45 public RegionInfo(int culture)
46 {
47 if (!true)
48 {
49 }
51 bool byTerritory = this.GetByTerritory(cultureInfo);
52 }
53
54 // Token: 0x06002D37 RID: 11575 RVA: 0x00064280 File Offset: 0x00062480
55 public RegionInfo(string name)
56 {
57 do
58 {
59 base..ctor();
60 }
61 while (name == null);
62 string text = name.ToUpperInvariant();
64 bool byTerritory = this.GetByTerritory(cultureInfo);
65 }
66
67 // Token: 0x06002D38 RID: 11576 RVA: 0x000642AC File Offset: 0x000624AC
69 {
70 this.regionId = 244;
71 this.iso2Name = "IV";
72 this.iso3Name = "ivc";
73 this.win3Name = "IVC";
74 this.englishName = "Invariant Country";
75 this.nativeName = "Invariant Country";
76 this.currencySymbol = "ยค";
78 this.currencyEnglishName = "International Monetary Fund";
79 this.currencyNativeName = "International Monetary Fund";
80 }
81
82 // Token: 0x06002D39 RID: 11577 RVA: 0x00064344 File Offset: 0x00062544
84 {
85 while (ci == null)
86 {
87 }
88 string territory = ci.territory;
89 if (territory != null)
90 {
91 string text = territory.ToUpperInvariant();
92 return;
93 }
94 }
95
96 // Token: 0x06002D3A RID: 11578 RVA: 0x0000207A File Offset: 0x0000027A
98 {
99 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
100 }
101
102 // Token: 0x170006DA RID: 1754
103 // (get) Token: 0x06002D3B RID: 11579 RVA: 0x00064368 File Offset: 0x00062568
104 [ComVisible(false)]
105 public virtual string CurrencyEnglishName
106 {
107 get
108 {
109 return this.currencyEnglishName;
110 }
111 }
112
113 // Token: 0x170006DB RID: 1755
114 // (get) Token: 0x06002D3C RID: 11580 RVA: 0x0006437C File Offset: 0x0006257C
115 public virtual string CurrencySymbol
116 {
117 get
118 {
119 return this.currencySymbol;
120 }
121 }
122
123 // Token: 0x170006DC RID: 1756
124 // (get) Token: 0x06002D3D RID: 11581 RVA: 0x00064390 File Offset: 0x00062590
125 [MonoTODO("DisplayName currently only returns the EnglishName")]
126 public virtual string DisplayName
127 {
128 get
129 {
130 return this.englishName;
131 }
132 }
133
134 // Token: 0x170006DD RID: 1757
135 // (get) Token: 0x06002D3E RID: 11582 RVA: 0x000643A4 File Offset: 0x000625A4
136 public virtual string EnglishName
137 {
138 get
139 {
140 return this.englishName;
141 }
142 }
143
144 // Token: 0x170006DE RID: 1758
145 // (get) Token: 0x06002D3F RID: 11583 RVA: 0x000643B8 File Offset: 0x000625B8
146 [ComVisible(false)]
147 public virtual int GeoId
148 {
149 get
150 {
151 return this.regionId;
152 }
153 }
154
155 // Token: 0x170006DF RID: 1759
156 // (get) Token: 0x06002D40 RID: 11584 RVA: 0x000643CC File Offset: 0x000625CC
157 public virtual bool IsMetric
158 {
159 get
160 {
161 string text = this.iso2Name;
162 bool flag = text == "US";
163 return text == "UK";
164 }
165 }
166
167 // Token: 0x170006E0 RID: 1760
168 // (get) Token: 0x06002D41 RID: 11585 RVA: 0x000643FC File Offset: 0x000625FC
169 public virtual string ISOCurrencySymbol
170 {
171 get
172 {
173 return this.isoCurrencySymbol;
174 }
175 }
176
177 // Token: 0x170006E1 RID: 1761
178 // (get) Token: 0x06002D42 RID: 11586 RVA: 0x00064410 File Offset: 0x00062610
179 [ComVisible(false)]
180 public virtual string NativeName
181 {
182 get
183 {
184 return this.nativeName;
185 }
186 }
187
188 // Token: 0x170006E2 RID: 1762
189 // (get) Token: 0x06002D43 RID: 11587 RVA: 0x00064424 File Offset: 0x00062624
190 [ComVisible(false)]
191 public virtual string CurrencyNativeName
192 {
193 get
194 {
195 return this.currencyNativeName;
196 }
197 }
198
199 // Token: 0x170006E3 RID: 1763
200 // (get) Token: 0x06002D44 RID: 11588 RVA: 0x00064438 File Offset: 0x00062638
201 public virtual string Name
202 {
203 get
204 {
205 return this.iso2Name;
206 }
207 }
208
209 // Token: 0x170006E4 RID: 1764
210 // (get) Token: 0x06002D45 RID: 11589 RVA: 0x0006444C File Offset: 0x0006264C
211 public virtual string ThreeLetterISORegionName
212 {
213 get
214 {
215 return this.iso3Name;
216 }
217 }
218
219 // Token: 0x170006E5 RID: 1765
220 // (get) Token: 0x06002D46 RID: 11590 RVA: 0x00064460 File Offset: 0x00062660
221 public virtual string ThreeLetterWindowsRegionName
222 {
223 get
224 {
225 return this.win3Name;
226 }
227 }
228
229 // Token: 0x170006E6 RID: 1766
230 // (get) Token: 0x06002D47 RID: 11591 RVA: 0x00064474 File Offset: 0x00062674
231 public virtual string TwoLetterISORegionName
232 {
233 get
234 {
235 return this.iso2Name;
236 }
237 }
238
239 // Token: 0x06002D48 RID: 11592 RVA: 0x00064488 File Offset: 0x00062688
240 public override bool Equals(object value)
241 {
242 if (value != null)
243 {
244 }
245 bool flag;
246 return flag;
247 }
248
249 // Token: 0x06002D49 RID: 11593 RVA: 0x0000207A File Offset: 0x0000027A
250 public override int GetHashCode()
251 {
252 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
253 }
254
255 // Token: 0x06002D4A RID: 11594 RVA: 0x0000207A File Offset: 0x0000027A
256 public override string ToString()
257 {
258 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
259 }
260
261 // Token: 0x06002D4B RID: 11595 RVA: 0x0006449C File Offset: 0x0006269C
262 internal static void ClearCachedData()
263 {
264 }
265
266 // Token: 0x04001943 RID: 6467
267 private static RegionInfo currentRegion;
268
269 // Token: 0x04001944 RID: 6468
270 private int regionId;
271
272 // Token: 0x04001945 RID: 6469
273 private string iso2Name;
274
275 // Token: 0x04001946 RID: 6470
276 private string iso3Name;
277
278 // Token: 0x04001947 RID: 6471
279 private string win3Name;
280
281 // Token: 0x04001948 RID: 6472
282 private string englishName;
283
284 // Token: 0x04001949 RID: 6473
285 private string nativeName;
286
287 // Token: 0x0400194A RID: 6474
288 private string currencySymbol;
289
290 // Token: 0x0400194B RID: 6475
291 private string isoCurrencySymbol;
292
293 // Token: 0x0400194C RID: 6476
294 private string currencyEnglishName;
295
296 // Token: 0x0400194D RID: 6477
297 private string currencyNativeName;
298 }
299}
class f__AnonymousType0<< Count > j__TPar
static CultureInfo GetCultureInfo(int culture)
override bool Equals(object value)
bool construct_internal_region_from_name(string name)
Definition RegionInfo.cs:97
virtual string TwoLetterISORegionName
bool GetByTerritory(CultureInfo ci)
Definition RegionInfo.cs:83
virtual string ThreeLetterISORegionName
static RegionInfo currentRegion
virtual string ThreeLetterWindowsRegionName
static RegionInfo CurrentRegion
Definition RegionInfo.cs:16