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
ReflectionMethodsCache.cs
Go to the documentation of this file.
1using System;
5
6namespace UnityEngine.UI
7{
8 // Token: 0x02000078 RID: 120
9 internal class ReflectionMethodsCache
10 {
11 // Token: 0x060004F4 RID: 1268 RVA: 0x0000F860 File Offset: 0x0000DA60
13 {
14 if (!true)
15 {
16 }
17 Type type;
18 Type type2;
19 Type type3;
20 Type type4;
21 if ((type == null || type != null) && (type2 == null || type2 != null) && (type3 == null || type3 != null) && (type4 == null || type4 != null))
22 {
23 Type type5;
26 if (@delegate != null)
27 {
29 return;
30 }
32 Type type6;
33 Type type7;
34 Type type8;
35 if ((type6 == null || type6 != null) && (type7 == null || type7 != null) && (type8 == null || type8 != null))
36 {
37 Type type9;
40 if (delegate2 != null)
41 {
43 return;
44 }
50 if ((type10 == null || type10 != null) && (type11 == null || type11 != null) && (type12 == null || type12 != null) && (type13 == null || type13 != null))
51 {
55 if (delegate3 != null)
56 {
58 return;
59 }
65 if ((type15 == null || type15 != null) && (type16 == null || type16 != null) && (type17 == null || type17 != null) && (type18 == null || type18 != null))
66 {
70 if (delegate4 != null)
71 {
73 return;
74 }
79 if ((type20 == null || type20 != null) && (type21 == null || type21 != null) && (type22 == null || type22 != null))
80 {
84 if (delegate5 != null)
85 {
87 return;
88 }
94 if ((type24 == null || type24 != null) && (type25 == null || type25 != null) && (type26 == null || type26 != null) && (type27 == null || type27 != null))
95 {
99 if (delegate6 != null)
100 {
102 throw new InvalidCastException();
103 }
105 return;
106 }
107 }
108 }
109 }
110 }
111 }
112 throw new ArrayTypeMismatchException();
113 }
114
115 // Token: 0x17000151 RID: 337
116 // (get) Token: 0x060004F5 RID: 1269 RVA: 0x0000FA24 File Offset: 0x0000DC24
118 {
119 get
120 {
121 /*
122An exception occurred when decompiling this method (060004F5)
123
124ICSharpCode.Decompiler.DecompilerException: Error decompiling UnityEngine.UI.ReflectionMethodsCache UnityEngine.UI.ReflectionMethodsCache::get_Singleton()
125
126 ---> System.Exception: Basic block has to end with unconditional control flow.
127{
128 IL_0000:
129 brtrue(IL_0000, ldc.i4:bool(1))
130}
131
132 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
133 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
134 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
135 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
136 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
137 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
138 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
139 --- End of inner exception stack trace ---
140 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
141 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
142*/;
143 }
144 }
145
146 // Token: 0x04000257 RID: 599
148
149 // Token: 0x04000258 RID: 600
151
152 // Token: 0x04000259 RID: 601
154
155 // Token: 0x0400025A RID: 602
157
158 // Token: 0x0400025B RID: 603
160
161 // Token: 0x0400025C RID: 604
163
164 // Token: 0x0400025D RID: 605
166
167 // Token: 0x02000079 RID: 121
169 {
170 // Token: 0x060004F6 RID: 1270 RVA: 0x0000FA34 File Offset: 0x0000DC34
171 public Raycast3DCallback(object @object, IntPtr method)
172 {
174 this.m_target = @object;
176 this.method_code = this;
177 }
178
179 // Token: 0x060004F7 RID: 1271 RVA: 0x0000FA88 File Offset: 0x0000DC88
180 public bool Invoke(Ray r, [Out] RaycastHit hit, float f, int i)
181 {
182 /*
183An exception occurred when decompiling this method (060004F7)
184
185ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean UnityEngine.UI.ReflectionMethodsCache/Raycast3DCallback::Invoke(UnityEngine.Ray,UnityEngine.RaycastHit,System.Single,System.Int32)
186
187 ---> System.Exception: Basic block has to end with unconditional control flow.
188{
189 Block_0:
190 stloc:float32(var_0_0B, ldfld:float32(Vector3::y, ldfld:Vector3[exp:valuetype [UnityEngine.CoreModule]UnityEngine.Vector3&](Ray::m_Direction, ldloc:Ray[exp:valuetype [UnityEngine.CoreModule]UnityEngine.Ray&](r))))
191 stloc:native int(var_1_12, ldfld:native int(Delegate::invoke_impl, ldloc:Raycast3DCallback[exp:Delegate](this)))
192 stloc:native int(var_2_19, ldfld:native int(Delegate::method_code, ldloc:Raycast3DCallback[exp:Delegate](this)))
193 stloc:native int(var_3_20, ldfld:native int(Delegate::method, ldloc:Raycast3DCallback[exp:Delegate](this)))
194}
195
196 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
197 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
198 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
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 88
200 --- End of inner exception stack trace ---
201 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
202 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
203*/;
204 }
205
206 // Token: 0x060004F8 RID: 1272 RVA: 0x00002207 File Offset: 0x00000407
207 public IAsyncResult BeginInvoke(Ray r, [Out] RaycastHit hit, float f, int i, AsyncCallback callback, object @object)
208 {
209 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
210 }
211
212 // Token: 0x060004F9 RID: 1273 RVA: 0x00002207 File Offset: 0x00000407
213 public bool EndInvoke([Out] RaycastHit hit, IAsyncResult result)
214 {
215 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
216 }
217 }
218
219 // Token: 0x0200007A RID: 122
221 {
222 // Token: 0x060004FA RID: 1274 RVA: 0x0000FAB8 File Offset: 0x0000DCB8
223 public RaycastAllCallback(object @object, IntPtr method)
224 {
226 this.m_target = @object;
228 this.method_code = this;
229 }
230
231 // Token: 0x060004FB RID: 1275 RVA: 0x0000FB0C File Offset: 0x0000DD0C
232 public RaycastHit[] Invoke(Ray r, float f, int i)
233 {
234 /*
235An exception occurred when decompiling this method (060004FB)
236
237ICSharpCode.Decompiler.DecompilerException: Error decompiling UnityEngine.RaycastHit[] UnityEngine.UI.ReflectionMethodsCache/RaycastAllCallback::Invoke(UnityEngine.Ray,System.Single,System.Int32)
238
239 ---> System.Exception: Basic block has to end with unconditional control flow.
240{
241 Block_0:
242 stloc:float32(var_0_0B, ldfld:float32(Vector3::y, ldfld:Vector3[exp:valuetype [UnityEngine.CoreModule]UnityEngine.Vector3&](Ray::m_Direction, ldloc:Ray[exp:valuetype [UnityEngine.CoreModule]UnityEngine.Ray&](r))))
243 stloc:native int(var_1_12, ldfld:native int(Delegate::invoke_impl, ldloc:RaycastAllCallback[exp:Delegate](this)))
244 stloc:native int(var_2_19, ldfld:native int(Delegate::method_code, ldloc:RaycastAllCallback[exp:Delegate](this)))
245 stloc:native int(var_3_20, ldfld:native int(Delegate::method, ldloc:RaycastAllCallback[exp:Delegate](this)))
246}
247
248 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
249 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
250 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
251 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
252 --- End of inner exception stack trace ---
253 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
254 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
255*/;
256 }
257
258 // Token: 0x060004FC RID: 1276 RVA: 0x00002207 File Offset: 0x00000407
259 public IAsyncResult BeginInvoke(Ray r, float f, int i, AsyncCallback callback, object @object)
260 {
261 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
262 }
263
264 // Token: 0x060004FD RID: 1277 RVA: 0x00002207 File Offset: 0x00000407
266 {
267 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
268 }
269 }
270
271 // Token: 0x0200007B RID: 123
273 {
274 // Token: 0x060004FE RID: 1278 RVA: 0x0000FB3C File Offset: 0x0000DD3C
276 {
278 this.m_target = @object;
280 this.method_code = this;
281 }
282
283 // Token: 0x060004FF RID: 1279 RVA: 0x0000FB90 File Offset: 0x0000DD90
284 public int Invoke(Ray r, RaycastHit[] results, float f, int i)
285 {
286 /*
287An exception occurred when decompiling this method (060004FF)
288
289ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 UnityEngine.UI.ReflectionMethodsCache/GetRaycastNonAllocCallback::Invoke(UnityEngine.Ray,UnityEngine.RaycastHit[],System.Single,System.Int32)
290
291 ---> System.Exception: Basic block has to end with unconditional control flow.
292{
293 Block_0:
294 stloc:float32(var_0_0B, ldfld:float32(Vector3::y, ldfld:Vector3[exp:valuetype [UnityEngine.CoreModule]UnityEngine.Vector3&](Ray::m_Direction, ldloc:Ray[exp:valuetype [UnityEngine.CoreModule]UnityEngine.Ray&](r))))
295 stloc:native int(var_1_12, ldfld:native int(Delegate::invoke_impl, ldloc:GetRaycastNonAllocCallback[exp:Delegate](this)))
296 stloc:native int(var_2_19, ldfld:native int(Delegate::method_code, ldloc:GetRaycastNonAllocCallback[exp:Delegate](this)))
297 stloc:native int(var_3_20, ldfld:native int(Delegate::method, ldloc:GetRaycastNonAllocCallback[exp:Delegate](this)))
298}
299
300 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
301 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
302 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
303 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
304 --- End of inner exception stack trace ---
305 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
306 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
307*/;
308 }
309
310 // Token: 0x06000500 RID: 1280 RVA: 0x00002207 File Offset: 0x00000407
311 public IAsyncResult BeginInvoke(Ray r, RaycastHit[] results, float f, int i, AsyncCallback callback, object @object)
312 {
313 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
314 }
315
316 // Token: 0x06000501 RID: 1281 RVA: 0x00002207 File Offset: 0x00000407
317 public int EndInvoke(IAsyncResult result)
318 {
319 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
320 }
321 }
322
323 // Token: 0x0200007C RID: 124
325 {
326 // Token: 0x06000502 RID: 1282 RVA: 0x0000FBC0 File Offset: 0x0000DDC0
327 public Raycast2DCallback(object @object, IntPtr method)
328 {
330 this.m_target = @object;
332 this.method_code = this;
333 }
334
335 // Token: 0x06000503 RID: 1283 RVA: 0x0000FC14 File Offset: 0x0000DE14
336 public RaycastHit2D Invoke(Vector2 p1, Vector2 p2, float f, int i)
337 {
340 IntPtr method = this.method;
342 return raycastHit2D;
343 }
344
345 // Token: 0x06000504 RID: 1284 RVA: 0x00002207 File Offset: 0x00000407
346 public IAsyncResult BeginInvoke(Vector2 p1, Vector2 p2, float f, int i, AsyncCallback callback, object @object)
347 {
348 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
349 }
350
351 // Token: 0x06000505 RID: 1285 RVA: 0x0000FC38 File Offset: 0x0000DE38
358 }
359
360 // Token: 0x0200007D RID: 125
362 {
363 // Token: 0x06000506 RID: 1286 RVA: 0x0000FC50 File Offset: 0x0000DE50
365 {
367 this.m_target = @object;
369 this.method_code = this;
370 }
371
372 // Token: 0x06000507 RID: 1287 RVA: 0x0000FCA4 File Offset: 0x0000DEA4
373 public RaycastHit2D[] Invoke(Ray r, float f, int i)
374 {
375 /*
376An exception occurred when decompiling this method (06000507)
377
378ICSharpCode.Decompiler.DecompilerException: Error decompiling UnityEngine.RaycastHit2D[] UnityEngine.UI.ReflectionMethodsCache/GetRayIntersectionAllCallback::Invoke(UnityEngine.Ray,System.Single,System.Int32)
379
380 ---> System.Exception: Basic block has to end with unconditional control flow.
381{
382 Block_0:
383 stloc:float32(var_0_0B, ldfld:float32(Vector3::y, ldfld:Vector3[exp:valuetype [UnityEngine.CoreModule]UnityEngine.Vector3&](Ray::m_Direction, ldloc:Ray[exp:valuetype [UnityEngine.CoreModule]UnityEngine.Ray&](r))))
384 stloc:native int(var_1_12, ldfld:native int(Delegate::invoke_impl, ldloc:GetRayIntersectionAllCallback[exp:Delegate](this)))
385 stloc:native int(var_2_19, ldfld:native int(Delegate::method_code, ldloc:GetRayIntersectionAllCallback[exp:Delegate](this)))
386 stloc:native int(var_3_20, ldfld:native int(Delegate::method, ldloc:GetRayIntersectionAllCallback[exp:Delegate](this)))
387}
388
389 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
390 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
391 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
392 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
393 --- End of inner exception stack trace ---
394 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
395 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
396*/;
397 }
398
399 // Token: 0x06000508 RID: 1288 RVA: 0x00002207 File Offset: 0x00000407
400 public IAsyncResult BeginInvoke(Ray r, float f, int i, AsyncCallback callback, object @object)
401 {
402 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
403 }
404
405 // Token: 0x06000509 RID: 1289 RVA: 0x00002207 File Offset: 0x00000407
407 {
408 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
409 }
410 }
411
412 // Token: 0x0200007E RID: 126
414 {
415 // Token: 0x0600050A RID: 1290 RVA: 0x0000FCD4 File Offset: 0x0000DED4
417 {
419 this.m_target = @object;
421 this.method_code = this;
422 }
423
424 // Token: 0x0600050B RID: 1291 RVA: 0x0000FD28 File Offset: 0x0000DF28
425 public int Invoke(Ray r, RaycastHit2D[] results, float f, int i)
426 {
427 /*
428An exception occurred when decompiling this method (0600050B)
429
430ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 UnityEngine.UI.ReflectionMethodsCache/GetRayIntersectionAllNonAllocCallback::Invoke(UnityEngine.Ray,UnityEngine.RaycastHit2D[],System.Single,System.Int32)
431
432 ---> System.Exception: Basic block has to end with unconditional control flow.
433{
434 Block_0:
435 stloc:float32(var_0_0B, ldfld:float32(Vector3::y, ldfld:Vector3[exp:valuetype [UnityEngine.CoreModule]UnityEngine.Vector3&](Ray::m_Direction, ldloc:Ray[exp:valuetype [UnityEngine.CoreModule]UnityEngine.Ray&](r))))
436 stloc:native int(var_1_12, ldfld:native int(Delegate::invoke_impl, ldloc:GetRayIntersectionAllNonAllocCallback[exp:Delegate](this)))
437 stloc:native int(var_2_19, ldfld:native int(Delegate::method_code, ldloc:GetRayIntersectionAllNonAllocCallback[exp:Delegate](this)))
438 stloc:native int(var_3_20, ldfld:native int(Delegate::method, ldloc:GetRayIntersectionAllNonAllocCallback[exp:Delegate](this)))
439}
440
441 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
442 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
443 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
444 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
445 --- End of inner exception stack trace ---
446 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
447 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
448*/;
449 }
450
451 // Token: 0x0600050C RID: 1292 RVA: 0x00002207 File Offset: 0x00000407
452 public IAsyncResult BeginInvoke(Ray r, RaycastHit2D[] results, float f, int i, AsyncCallback callback, object @object)
453 {
454 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
455 }
456
457 // Token: 0x0600050D RID: 1293 RVA: 0x00002207 File Offset: 0x00000407
458 public int EndInvoke(IAsyncResult result)
459 {
460 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
461 }
462 }
463 }
464}
class f__AnonymousType0<< Count > j__TPar
IntPtr method_code
Definition Delegate.cs:386
IntPtr invoke_impl
Definition Delegate.cs:371
static Delegate CreateDelegate(Type type, object firstArgument, MethodInfo method, bool throwOnBindFailure, bool allowClosed)
Definition Delegate.cs:76
IAsyncResult BeginInvoke(Ray r, float f, int i, AsyncCallback callback, object @object)
IAsyncResult BeginInvoke(Ray r, RaycastHit2D[] results, float f, int i, AsyncCallback callback, object @object)
IAsyncResult BeginInvoke(Ray r, RaycastHit[] results, float f, int i, AsyncCallback callback, object @object)
IAsyncResult BeginInvoke(Vector2 p1, Vector2 p2, float f, int i, AsyncCallback callback, object @object)
RaycastHit2D Invoke(Vector2 p1, Vector2 p2, float f, int i)
bool EndInvoke([Out] RaycastHit hit, IAsyncResult result)
bool Invoke(Ray r, [Out] RaycastHit hit, float f, int i)
IAsyncResult BeginInvoke(Ray r, [Out] RaycastHit hit, float f, int i, AsyncCallback callback, object @object)
IAsyncResult BeginInvoke(Ray r, float f, int i, AsyncCallback callback, object @object)
ReflectionMethodsCache.GetRayIntersectionAllNonAllocCallback getRayIntersectionAllNonAlloc
ReflectionMethodsCache.RaycastAllCallback raycast3DAll
static ReflectionMethodsCache s_ReflectionMethodsCache
ReflectionMethodsCache.Raycast3DCallback raycast3D
ReflectionMethodsCache.GetRaycastNonAllocCallback getRaycastNonAlloc
ReflectionMethodsCache.Raycast2DCallback raycast2D
ReflectionMethodsCache.GetRayIntersectionAllCallback getRayIntersectionAll