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
CategoryAttribute.cs
Go to the documentation of this file.
1using System;
3
5{
6 // Token: 0x020003D7 RID: 983
9 {
10 // Token: 0x170005E6 RID: 1510
11 // (get) Token: 0x060019E8 RID: 6632 RVA: 0x00002050 File Offset: 0x00000250
13 {
14 get
15 {
16 throw new global::Cpp2IlInjected.AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
17 }
18 }
19
20 // Token: 0x170005E7 RID: 1511
21 // (get) Token: 0x060019E9 RID: 6633 RVA: 0x00002050 File Offset: 0x00000250
23 {
24 get
25 {
26 throw new global::Cpp2IlInjected.AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
27 }
28 }
29
30 // Token: 0x170005E8 RID: 1512
31 // (get) Token: 0x060019EA RID: 6634 RVA: 0x00002050 File Offset: 0x00000250
33 {
34 get
35 {
36 throw new global::Cpp2IlInjected.AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
37 }
38 }
39
40 // Token: 0x170005E9 RID: 1513
41 // (get) Token: 0x060019EB RID: 6635 RVA: 0x00002050 File Offset: 0x00000250
43 {
44 get
45 {
46 throw new global::Cpp2IlInjected.AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
47 }
48 }
49
50 // Token: 0x170005EA RID: 1514
51 // (get) Token: 0x060019EC RID: 6636 RVA: 0x00002050 File Offset: 0x00000250
52 public static CategoryAttribute Data
53 {
54 get
55 {
56 throw new global::Cpp2IlInjected.AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
57 }
58 }
59
60 // Token: 0x170005EB RID: 1515
61 // (get) Token: 0x060019ED RID: 6637 RVA: 0x00002050 File Offset: 0x00000250
63 {
64 get
65 {
66 throw new global::Cpp2IlInjected.AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
67 }
68 }
69
70 // Token: 0x170005EC RID: 1516
71 // (get) Token: 0x060019EE RID: 6638 RVA: 0x00002050 File Offset: 0x00000250
72 public static CategoryAttribute Design
73 {
74 get
75 {
76 throw new global::Cpp2IlInjected.AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
77 }
78 }
79
80 // Token: 0x170005ED RID: 1517
81 // (get) Token: 0x060019EF RID: 6639 RVA: 0x00002050 File Offset: 0x00000250
83 {
84 get
85 {
86 throw new global::Cpp2IlInjected.AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
87 }
88 }
89
90 // Token: 0x170005EE RID: 1518
91 // (get) Token: 0x060019F0 RID: 6640 RVA: 0x00002050 File Offset: 0x00000250
93 {
94 get
95 {
96 throw new global::Cpp2IlInjected.AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
97 }
98 }
99
100 // Token: 0x170005EF RID: 1519
101 // (get) Token: 0x060019F1 RID: 6641 RVA: 0x00002050 File Offset: 0x00000250
103 {
104 get
105 {
106 throw new global::Cpp2IlInjected.AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
107 }
108 }
109
110 // Token: 0x170005F0 RID: 1520
111 // (get) Token: 0x060019F2 RID: 6642 RVA: 0x00002050 File Offset: 0x00000250
112 public static CategoryAttribute Key
113 {
114 get
115 {
116 throw new global::Cpp2IlInjected.AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
117 }
118 }
119
120 // Token: 0x170005F1 RID: 1521
121 // (get) Token: 0x060019F3 RID: 6643 RVA: 0x00002050 File Offset: 0x00000250
123 {
124 get
125 {
126 throw new global::Cpp2IlInjected.AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
127 }
128 }
129
130 // Token: 0x170005F2 RID: 1522
131 // (get) Token: 0x060019F4 RID: 6644 RVA: 0x00002050 File Offset: 0x00000250
132 public static CategoryAttribute Mouse
133 {
134 get
135 {
136 throw new global::Cpp2IlInjected.AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
137 }
138 }
139
140 // Token: 0x170005F3 RID: 1523
141 // (get) Token: 0x060019F5 RID: 6645 RVA: 0x00002050 File Offset: 0x00000250
143 {
144 get
145 {
146 throw new global::Cpp2IlInjected.AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
147 }
148 }
149
150 // Token: 0x060019F6 RID: 6646 RVA: 0x00047D4C File Offset: 0x00045F4C
152 {
153 this.categoryValue = "Default";
154 }
155
156 // Token: 0x060019F7 RID: 6647 RVA: 0x00047D6C File Offset: 0x00045F6C
157 public CategoryAttribute(string category)
158 {
159 this.categoryValue = category;
160 }
161
162 // Token: 0x170005F4 RID: 1524
163 // (get) Token: 0x060019F8 RID: 6648 RVA: 0x00047D88 File Offset: 0x00045F88
164 public string Category
165 {
166 get
167 {
168 if (!this.localized)
169 {
170 this.localized = true;
171 string text = this.categoryValue;
172 if (this != null)
173 {
174 this.categoryValue = this;
175 }
176 }
177 return this.categoryValue;
178 }
179 }
180
181 // Token: 0x060019F9 RID: 6649 RVA: 0x00047DBC File Offset: 0x00045FBC
182 public override bool Equals(object obj)
183 {
184 if (obj != null)
185 {
186 }
187 int num;
188 if (!this.localized)
189 {
190 num = 1;
191 this.localized = num != 0;
192 string text = this.categoryValue;
193 if (this != null)
194 {
195 this.categoryValue = this;
196 }
197 }
198 string text2 = this.categoryValue;
199 if (num != 0 || obj != null)
200 {
201 }
202 bool flag;
203 return flag;
204 }
205
206 // Token: 0x060019FA RID: 6650 RVA: 0x00047E0C File Offset: 0x0004600C
207 public override int GetHashCode()
208 {
209 /*
210An exception occurred when decompiling this method (060019FA)
211
212ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 System.ComponentModel.CategoryAttribute::GetHashCode()
213
214 ---> System.Exception: Basic block has to end with unconditional control flow.
215{
216 IL_0020:
217 stloc:string(var_1_26, ldfld:string(CategoryAttribute::categoryValue, ldloc:CategoryAttribute(this)))
218}
219
220 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
221 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
222 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
223 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
224 --- End of inner exception stack trace ---
225 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
226 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
227*/;
228 }
229
230 // Token: 0x060019FB RID: 6651 RVA: 0x00047E40 File Offset: 0x00046040
231 protected virtual string GetLocalizedString(string value)
232 {
233 uint num = global::<PrivateImplementationDetails>.ComputeStringHash(value);
234 bool flag = value == "Action";
235 bool flag2 = value == "Design";
236 return value;
237 }
238
239 // Token: 0x060019FC RID: 6652 RVA: 0x00047E70 File Offset: 0x00046070
240 public override bool IsDefaultAttribute()
241 {
242 if (!this.localized)
243 {
244 this.localized = true;
245 string text = this.categoryValue;
246 if (this != null)
247 {
248 this.categoryValue = this;
249 }
250 }
251 string text2 = this.categoryValue;
253 if (!@default.localized)
254 {
255 string text3 = @default.categoryValue;
256 if (@default != null)
257 {
258 @default.categoryValue = @default;
259 }
260 }
261 string text4 = @default.categoryValue;
262 return text2.Equals(text4);
263 }
264
265 // Token: 0x040012E6 RID: 4838
267
268 // Token: 0x040012E7 RID: 4839
270
271 // Token: 0x040012E8 RID: 4840
273
274 // Token: 0x040012E9 RID: 4841
275 private static CategoryAttribute data;
276
277 // Token: 0x040012EA RID: 4842
278 private static CategoryAttribute design;
279
280 // Token: 0x040012EB RID: 4843
281 private static CategoryAttribute action;
282
283 // Token: 0x040012EC RID: 4844
284 private static CategoryAttribute format;
285
286 // Token: 0x040012ED RID: 4845
287 private static CategoryAttribute layout;
288
289 // Token: 0x040012EE RID: 4846
290 private static CategoryAttribute mouse;
291
292 // Token: 0x040012EF RID: 4847
293 private static CategoryAttribute key;
294
295 // Token: 0x040012F0 RID: 4848
296 private static CategoryAttribute focus;
297
298 // Token: 0x040012F1 RID: 4849
300
301 // Token: 0x040012F2 RID: 4850
303
304 // Token: 0x040012F3 RID: 4851
306
307 // Token: 0x040012F4 RID: 4852
308 private bool localized;
309
310 // Token: 0x040012F5 RID: 4853
311 private string categoryValue;
312 }
313}
class f__AnonymousType0<< Count > j__TPar
virtual string GetLocalizedString(string value)