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
RuntimeFieldInfo.cs
Go to the documentation of this file.
1using System;
7
8namespace System.Reflection
9{
10 // Token: 0x0200050C RID: 1292
12 [StructLayout(0)]
14 {
15 // Token: 0x17000537 RID: 1335
16 // (get) Token: 0x060025A2 RID: 9634 RVA: 0x00052E50 File Offset: 0x00051050
18 {
19 get
20 {
21 }
22 }
23
24 // Token: 0x17000538 RID: 1336
25 // (get) Token: 0x060025A3 RID: 9635 RVA: 0x00052E60 File Offset: 0x00051060
26 public override Module Module
27 {
28 get
29 {
30 /*
31An exception occurred when decompiling this method (060025A3)
32
33ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Reflection.Module System.Reflection.RuntimeFieldInfo::get_Module()
34
35 ---> System.Exception: Basic block has to end with unconditional control flow.
36{
37 Block_0:
38 stloc:RuntimeModule(var_0_0B, call:RuntimeModule(RuntimeType::GetRuntimeModule, call:RuntimeType(RuntimeFieldInfo::GetDeclaringTypeInternal, ldloc:RuntimeFieldInfo(this))))
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
52 // Token: 0x060025A4 RID: 9636 RVA: 0x00052E78 File Offset: 0x00051078
54 {
55 if (this != null)
56 {
57 }
58 throw new InvalidCastException();
59 }
60
61 // Token: 0x17000539 RID: 1337
62 // (get) Token: 0x060025A5 RID: 9637 RVA: 0x00052E90 File Offset: 0x00051090
64 {
65 get
66 {
67 if (this != null)
68 {
69 }
70 throw new InvalidCastException();
71 }
72 }
73
74 // Token: 0x060025A6 RID: 9638 RVA: 0x00052EA8 File Offset: 0x000510A8
79
80 // Token: 0x060025A7 RID: 9639 RVA: 0x00052EC0 File Offset: 0x000510C0
82 {
83 while (info == null)
84 {
85 }
87 }
88
89 // Token: 0x060025A8 RID: 9640 RVA: 0x0000207A File Offset: 0x0000027A
90 internal override object UnsafeGetValue(object obj)
91 {
92 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
93 }
94
95 // Token: 0x060025A9 RID: 9641 RVA: 0x00052ED8 File Offset: 0x000510D8
96 internal override void CheckConsistency(object target)
97 {
98 }
99
100 // Token: 0x060025AA RID: 9642 RVA: 0x00052F10 File Offset: 0x00051110
104 {
105 }
106
107 // Token: 0x060025AB RID: 9643 RVA: 0x00052F20 File Offset: 0x00051120
110 public override void SetValueDirect(TypedReference obj, object value)
111 {
112 bool isNull = obj.IsNull;
113 if (this != null)
114 {
115 }
116 if (this != null)
117 {
118 }
119 }
120
121 // Token: 0x1700053A RID: 1338
122 // (get) Token: 0x060025AC RID: 9644 RVA: 0x00052F54 File Offset: 0x00051154
124 {
125 get
126 {
127 return this.attrs;
128 }
129 }
130
131 // Token: 0x1700053B RID: 1339
132 // (get) Token: 0x060025AD RID: 9645 RVA: 0x00052F68 File Offset: 0x00051168
134 {
135 get
136 {
137 return this.fhandle;
138 }
139 }
140
141 // Token: 0x060025AE RID: 9646 RVA: 0x0000207A File Offset: 0x0000027A
143 {
144 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
145 }
146
147 // Token: 0x1700053C RID: 1340
148 // (get) Token: 0x060025AF RID: 9647 RVA: 0x00052F7C File Offset: 0x0005117C
149 public override Type FieldType
150 {
151 get
152 {
153 Type type = this.type;
154 if (!true)
155 {
156 }
157 this.type = this;
158 return this.type;
159 }
160 }
161
162 // Token: 0x060025B0 RID: 9648 RVA: 0x0000207A File Offset: 0x0000027A
164 {
165 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
166 }
167
168 // Token: 0x1700053D RID: 1341
169 // (get) Token: 0x060025B1 RID: 9649 RVA: 0x0000207A File Offset: 0x0000027A
170 public override Type ReflectedType
171 {
172 get
173 {
174 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
175 }
176 }
177
178 // Token: 0x1700053E RID: 1342
179 // (get) Token: 0x060025B2 RID: 9650 RVA: 0x0000207A File Offset: 0x0000027A
180 public override Type DeclaringType
181 {
182 get
183 {
184 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
185 }
186 }
187
188 // Token: 0x1700053F RID: 1343
189 // (get) Token: 0x060025B3 RID: 9651 RVA: 0x00052FA0 File Offset: 0x000511A0
190 public override string Name
191 {
192 get
193 {
194 return this.name;
195 }
196 }
197
198 // Token: 0x060025B4 RID: 9652 RVA: 0x00052FB4 File Offset: 0x000511B4
199 public override bool IsDefined(Type attributeType, bool inherit)
200 {
201 if (!true)
202 {
203 }
205 }
206
207 // Token: 0x060025B5 RID: 9653 RVA: 0x00052FCC File Offset: 0x000511CC
208 public override object[] GetCustomAttributes(bool inherit)
209 {
210 if (!true)
211 {
212 }
214 }
215
216 // Token: 0x060025B6 RID: 9654 RVA: 0x00052FE4 File Offset: 0x000511E4
217 public override object[] GetCustomAttributes(Type attributeType, bool inherit)
218 {
219 if (!true)
220 {
221 }
223 }
224
225 // Token: 0x060025B7 RID: 9655 RVA: 0x0000207A File Offset: 0x0000027A
226 internal override int GetFieldOffset()
227 {
228 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
229 }
230
231 // Token: 0x060025B8 RID: 9656 RVA: 0x0000207A File Offset: 0x0000027A
232 private object GetValueInternal(object obj)
233 {
234 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
235 }
236
237 // Token: 0x060025B9 RID: 9657 RVA: 0x00052FFC File Offset: 0x000511FC
238 public override object GetValue(object obj)
239 {
240 /*
241An exception occurred when decompiling this method (060025B9)
242
243ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Object System.Reflection.RuntimeFieldInfo::GetValue(System.Object)
244
245 ---> System.Exception: Basic block has to end with unconditional control flow.
246{
247 IL_001E:
248 stloc:string(var_4_2B, call:string(string::Format, ldstr:string("Field {0} defined on type {1} is not a field on the target object which is of type {2}."), ldloc:RuntimeFieldInfo[exp:object](this), ldloc:RuntimeFieldInfo[exp:object](this), ldloc:Type[exp:object](var_3)))
249}
250
251 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
252 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
253 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
254 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
255 --- End of inner exception stack trace ---
256 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
257 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
258*/;
259 }
260
261 // Token: 0x060025BA RID: 9658 RVA: 0x00053038 File Offset: 0x00051238
262 public override string ToString()
263 {
264 string text = this.name;
265 return string.Format("{0} {1}", this, text);
266 }
267
268 // Token: 0x060025BB RID: 9659 RVA: 0x00053058 File Offset: 0x00051258
269 private static void SetValueInternal(FieldInfo fi, object obj, object value)
270 {
271 }
272
273 // Token: 0x060025BC RID: 9660 RVA: 0x00053068 File Offset: 0x00051268
274 public override void SetValue(object obj, object val, BindingFlags invokeAttr, Binder binder, CultureInfo culture)
275 {
276 /*
277An exception occurred when decompiling this method (060025BC)
278
279ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void System.Reflection.RuntimeFieldInfo::SetValue(System.Object,System.Object,System.Reflection.BindingFlags,System.Reflection.Binder,System.Globalization.CultureInfo)
280
281 ---> System.Exception: Basic block has to end with unconditional control flow.
282{
283 IL_003A:
284 stloc:string(var_7_48, call:string(string::Format, ldstr:string("Field {0} defined on type {1} is not a field on the target object which is of type {2}."), ldloc:RuntimeFieldInfo[exp:object](this), ldloc:RuntimeFieldInfo[exp:object](this), ldloc:Type[exp:object](var_6)))
285}
286
287 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
288 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
289 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
290 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
291 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
292 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
293 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
294 --- End of inner exception stack trace ---
295 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
296 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
297*/;
298 }
299
300 // Token: 0x060025BD RID: 9661 RVA: 0x0000207A File Offset: 0x0000027A
301 public override object GetRawConstantValue()
302 {
303 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
304 }
305
306 // Token: 0x060025BE RID: 9662 RVA: 0x000530C0 File Offset: 0x000512C0
307 private void CheckGeneric()
308 {
309 }
310
311 // Token: 0x17000540 RID: 1344
312 // (get) Token: 0x060025BF RID: 9663 RVA: 0x0000207A File Offset: 0x0000027A
313 public override int MetadataToken
314 {
315 get
316 {
317 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
318 }
319 }
320
321 // Token: 0x060025C0 RID: 9664 RVA: 0x0000207A File Offset: 0x0000027A
323 {
324 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
325 }
326
327 // Token: 0x060025C1 RID: 9665 RVA: 0x000530D0 File Offset: 0x000512D0
329 {
330 }
331
332 // Token: 0x040014E8 RID: 5352
333 internal IntPtr klass;
334
335 // Token: 0x040014E9 RID: 5353
337
338 // Token: 0x040014EA RID: 5354
339 private string name;
340
341 // Token: 0x040014EB RID: 5355
342 private Type type;
343
344 // Token: 0x040014EC RID: 5356
346 }
347}
class f__AnonymousType0<< Count > j__TPar
static bool IsDefined(ICustomAttributeProvider obj, Type attributeType, bool inherit)
static object[] GetCustomAttributes(ICustomAttributeProvider obj, Type attributeType, bool inherit)
override void SetValue(object obj, object val, BindingFlags invokeAttr, Binder binder, CultureInfo culture)
override bool IsDefined(Type attributeType, bool inherit)
override void CheckConsistency(object target)
override object[] GetCustomAttributes(bool inherit)
static int get_metadata_token(RuntimeFieldInfo monoField)
override RuntimeFieldHandle FieldHandle
override void UnsafeSetValue(object obj, object value, BindingFlags invokeAttr, Binder binder, CultureInfo culture)
override object[] GetCustomAttributes(Type attributeType, bool inherit)
override object UnsafeGetValue(object obj)
override void SetValueDirect(TypedReference obj, object value)
override FieldAttributes Attributes
static void SetValueInternal(FieldInfo fi, object obj, object value)
void GetObjectData(SerializationInfo info, StreamingContext context)
override object GetValue(object obj)
RuntimeModule GetRuntimeModule()