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
RuntimeTypeHandle.cs
Go to the documentation of this file.
1using System;
8
9namespace System
10{
11 // Token: 0x0200018C RID: 396
12 [ComVisible(true)]
15 {
16 // Token: 0x06000F51 RID: 3921 RVA: 0x00020964 File Offset: 0x0001EB64
18 {
19 this.value = val;
20 }
21
22 // Token: 0x06000F52 RID: 3922 RVA: 0x00020978 File Offset: 0x0001EB78
24 {
25 RuntimeTypeHandle impl = type._impl;
26 this.value = impl;
27 }
28
29 // Token: 0x06000F53 RID: 3923 RVA: 0x00020994 File Offset: 0x0001EB94
31 {
32 if (info != null)
33 {
34 Type type;
35 object obj = info.GetValue("TypeObj", type);
37 return;
38 }
39 }
40
41 // Token: 0x17000161 RID: 353
42 // (get) Token: 0x06000F54 RID: 3924 RVA: 0x0000207A File Offset: 0x0000027A
44 {
45 get
46 {
47 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
48 }
49 }
50
51 // Token: 0x06000F55 RID: 3925 RVA: 0x000209C0 File Offset: 0x0001EBC0
53 {
54 if (info != null)
55 {
56 Type type;
57 info.AddValue("TypeObj", context, type);
58 return;
59 }
60 }
61
62 // Token: 0x06000F56 RID: 3926 RVA: 0x000209E0 File Offset: 0x0001EBE0
63 [ReliabilityContract(Consistency.WillNotCorruptState, Cer.Success)]
64 public override bool Equals(object obj)
65 {
66 if (obj != null)
67 {
68 }
69 throw new InvalidCastException();
70 }
71
72 // Token: 0x06000F57 RID: 3927 RVA: 0x0000207A File Offset: 0x0000027A
73 public override int GetHashCode()
74 {
75 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
76 }
77
78 // Token: 0x06000F58 RID: 3928 RVA: 0x0000207A File Offset: 0x0000027A
80 {
81 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
82 }
83
84 // Token: 0x06000F59 RID: 3929 RVA: 0x0000207A File Offset: 0x0000027A
85 private static int GetMetadataToken(RuntimeType type)
86 {
87 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
88 }
89
90 // Token: 0x06000F5A RID: 3930 RVA: 0x0000207A File Offset: 0x0000027A
91 internal static int GetToken(RuntimeType type)
92 {
93 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
94 }
95
96 // Token: 0x06000F5B RID: 3931 RVA: 0x0000207A File Offset: 0x0000027A
98 {
99 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
100 }
101
102 // Token: 0x06000F5C RID: 3932 RVA: 0x0000207A File Offset: 0x0000027A
104 {
105 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
106 }
107
108 // Token: 0x06000F5D RID: 3933 RVA: 0x000209F8 File Offset: 0x0001EBF8
109 internal static bool IsPrimitive(RuntimeType type)
110 {
111 }
112
113 // Token: 0x06000F5E RID: 3934 RVA: 0x0000207A File Offset: 0x0000027A
114 internal static bool IsByRef(RuntimeType type)
115 {
116 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
117 }
118
119 // Token: 0x06000F5F RID: 3935 RVA: 0x0000207A File Offset: 0x0000027A
120 internal static bool IsPointer(RuntimeType type)
121 {
122 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
123 }
124
125 // Token: 0x06000F60 RID: 3936 RVA: 0x0000207A File Offset: 0x0000027A
126 internal static bool IsArray(RuntimeType type)
127 {
128 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
129 }
130
131 // Token: 0x06000F61 RID: 3937 RVA: 0x0000207A File Offset: 0x0000027A
132 internal static bool IsSzArray(RuntimeType type)
133 {
134 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
135 }
136
137 // Token: 0x06000F62 RID: 3938 RVA: 0x00020A08 File Offset: 0x0001EC08
138 internal static bool HasElementType(RuntimeType type)
139 {
140 }
141
142 // Token: 0x06000F63 RID: 3939 RVA: 0x0000207A File Offset: 0x0000027A
144 {
145 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
146 }
147
148 // Token: 0x06000F64 RID: 3940 RVA: 0x0000207A File Offset: 0x0000027A
149 internal static bool HasInstantiation(RuntimeType type)
150 {
151 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
152 }
153
154 // Token: 0x06000F65 RID: 3941 RVA: 0x0000207A File Offset: 0x0000027A
155 internal static bool IsComObject(RuntimeType type)
156 {
157 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
158 }
159
160 // Token: 0x06000F66 RID: 3942 RVA: 0x0000207A File Offset: 0x0000027A
161 internal static bool IsInstanceOfType(RuntimeType type, object o)
162 {
163 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
164 }
165
166 // Token: 0x06000F67 RID: 3943 RVA: 0x0000207A File Offset: 0x0000027A
167 internal static bool HasReferences(RuntimeType type)
168 {
169 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
170 }
171
172 // Token: 0x06000F68 RID: 3944 RVA: 0x00020A18 File Offset: 0x0001EC18
173 internal static bool IsComObject(RuntimeType type, bool isGenericCOM)
174 {
175 }
176
177 // Token: 0x06000F69 RID: 3945 RVA: 0x00020A28 File Offset: 0x0001EC28
178 internal static bool IsContextful(RuntimeType type)
179 {
180 /*
181An exception occurred when decompiling this method (06000F69)
182
183ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean System.RuntimeTypeHandle::IsContextful(System.RuntimeType)
184
185 ---> System.Exception: Basic block has to end with unconditional control flow.
186{
187 IL_0000:
188 brtrue(IL_0000, ldc.i4:bool(1))
189}
190
191 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
192 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
193 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
194 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
195 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
196 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
197 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
198 --- End of inner exception stack trace ---
199 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
200 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
201*/;
202 }
203
204 // Token: 0x06000F6A RID: 3946 RVA: 0x00020A38 File Offset: 0x0001EC38
206 {
207 }
208
209 // Token: 0x06000F6B RID: 3947 RVA: 0x0000207A File Offset: 0x0000027A
210 internal static bool IsInterface(RuntimeType type)
211 {
212 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
213 }
214
215 // Token: 0x06000F6C RID: 3948 RVA: 0x0000207A File Offset: 0x0000027A
216 internal static int GetArrayRank(RuntimeType type)
217 {
218 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
219 }
220
221 // Token: 0x06000F6D RID: 3949 RVA: 0x0000207A File Offset: 0x0000027A
223 {
224 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
225 }
226
227 // Token: 0x06000F6E RID: 3950 RVA: 0x0000207A File Offset: 0x0000027A
229 {
230 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
231 }
232
233 // Token: 0x06000F6F RID: 3951 RVA: 0x0000207A File Offset: 0x0000027A
234 internal static RuntimeModule GetModule(RuntimeType type)
235 {
236 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
237 }
238
239 // Token: 0x06000F70 RID: 3952 RVA: 0x0000207A File Offset: 0x0000027A
240 internal static bool IsGenericVariable(RuntimeType type)
241 {
242 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
243 }
244
245 // Token: 0x06000F71 RID: 3953 RVA: 0x0000207A File Offset: 0x0000027A
246 internal static RuntimeType GetBaseType(RuntimeType type)
247 {
248 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
249 }
250
251 // Token: 0x06000F72 RID: 3954 RVA: 0x0000207A File Offset: 0x0000027A
252 internal static bool CanCastTo(RuntimeType type, RuntimeType target)
253 {
254 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
255 }
256
257 // Token: 0x06000F73 RID: 3955 RVA: 0x0000207A File Offset: 0x0000027A
258 private static bool type_is_assignable_from(Type a, Type b)
259 {
260 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
261 }
262
263 // Token: 0x06000F74 RID: 3956 RVA: 0x0000207A File Offset: 0x0000027A
264 internal static bool IsGenericTypeDefinition(RuntimeType type)
265 {
266 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
267 }
268
269 // Token: 0x06000F75 RID: 3957 RVA: 0x0000207A File Offset: 0x0000027A
271 {
272 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
273 }
274
275 // Token: 0x06000F76 RID: 3958 RVA: 0x00020A48 File Offset: 0x0001EC48
276 internal static bool IsSubclassOf(RuntimeType childType, RuntimeType baseType)
277 {
278 /*
279An exception occurred when decompiling this method (06000F76)
280
281ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean System.RuntimeTypeHandle::IsSubclassOf(System.RuntimeType,System.RuntimeType)
282
283 ---> System.Exception: Basic block has to end with unconditional control flow.
284{
285 Block_0:
286 stloc:RuntimeTypeHandle(var_0_06, ldfld:RuntimeTypeHandle(Type::_impl, ldloc:RuntimeType[exp:Type](childType)))
287}
288
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 1852
290 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
291 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
292 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
293 --- End of inner exception stack trace ---
294 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
295 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
296*/;
297 }
298
299 // Token: 0x06000F77 RID: 3959 RVA: 0x0000207A File Offset: 0x0000027A
300 internal static bool is_subclass_of(IntPtr childType, IntPtr baseType)
301 {
302 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
303 }
304
305 // Token: 0x06000F78 RID: 3960 RVA: 0x0000207A File Offset: 0x0000027A
307 {
308 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
309 }
310
311 // Token: 0x06000F79 RID: 3961 RVA: 0x00020A5C File Offset: 0x0001EC5C
313 {
314 string text;
316 if (assembly != null)
317 {
318 throw new InvalidCastException();
319 }
320 string text2 = "Error loading '" + "Assembly qualifed type name is required" + "'";
321 throw new OutOfMemoryException();
322 }
323
324 // Token: 0x04000697 RID: 1687
325 private IntPtr value;
326 }
327}
class f__AnonymousType0<< Count > j__TPar
static Assembly ReflectionOnlyLoad(string assemblyString)
Definition Assembly.cs:273
RuntimeTypeHandle _impl
Definition Type.cs:1534
static bool IsPrimitive(RuntimeType type)
static bool IsComObject(RuntimeType type, bool isGenericCOM)
static IntPtr GetGenericParameterInfo(RuntimeType type)
static bool IsPointer(RuntimeType type)
static TypeAttributes GetAttributes(RuntimeType type)
void GetObjectData(SerializationInfo info, StreamingContext context)
static bool IsInstanceOfType(RuntimeType type, object o)
static bool IsSzArray(RuntimeType type)
static bool IsInterface(RuntimeType type)
static bool CanCastTo(RuntimeType type, RuntimeType target)
static RuntimeModule GetModule(RuntimeType type)
override bool Equals(object obj)
static RuntimeType internal_from_name(string name, StackCrawlMark stackMark, Assembly callerAssembly, bool throwOnError, bool ignoreCase, bool reflectionOnly)
static bool is_subclass_of(IntPtr childType, IntPtr baseType)
static Type GetGenericTypeDefinition(RuntimeType type)
RuntimeTypeHandle(SerializationInfo info, StreamingContext context)
RuntimeTypeHandle(RuntimeType type)
static int GetToken(RuntimeType type)
static bool HasInstantiation(RuntimeType type)
static bool IsByRef(RuntimeType type)
static bool IsSubclassOf(RuntimeType childType, RuntimeType baseType)
static bool IsGenericTypeDefinition(RuntimeType type)
static RuntimeAssembly GetAssembly(RuntimeType type)
static bool HasReferences(RuntimeType type)
static RuntimeType GetElementType(RuntimeType type)
static bool type_is_assignable_from(Type a, Type b)
static Type GetGenericTypeDefinition_impl(RuntimeType type)
static bool IsGenericVariable(RuntimeType type)
static bool IsEquivalentTo(RuntimeType rtType1, RuntimeType rtType2)
static bool HasElementType(RuntimeType type)
static bool IsContextful(RuntimeType type)
static bool IsArray(RuntimeType type)
static CorElementType GetCorElementType(RuntimeType type)
static int GetMetadataToken(RuntimeType type)
static RuntimeType GetBaseType(RuntimeType type)
static bool IsComObject(RuntimeType type)
static int GetArrayRank(RuntimeType type)
static RuntimeType GetTypeByName(string typeName, bool throwOnError, bool ignoreCase, bool reflectionOnly, StackCrawlMark stackMark, bool loadTypeFromPartialName)