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
InvokableCall.4.cs
Go to the documentation of this file.
1using System;
5
6namespace UnityEngine.Events
7{
8 // Token: 0x02000160 RID: 352
9 internal class InvokableCall<T1, T2, T3> : BaseInvokableCall
10 {
11 // Token: 0x06000698 RID: 1688 RVA: 0x0000BC24 File Offset: 0x00009E24
12 public InvokableCall(object target, MethodInfo theFunction)
13 : base(target, theFunction)
14 {
15 Type type;
16 Delegate @delegate = global::System.Delegate.CreateDelegate(type, target, theFunction);
17 long num;
18 if (@delegate != null)
19 {
20 if (@delegate == null)
21 {
22 throw new InvalidCastException();
23 }
24 }
25 else
26 {
27 num = 0L;
28 }
29 this.Delegate = num;
30 if (@delegate == null || @delegate != null)
31 {
32 return;
33 }
34 throw new InvalidCastException();
35 }
36
37 // Token: 0x06000699 RID: 1689 RVA: 0x0000BC64 File Offset: 0x00009E64
38 public override void Invoke(object[] args)
39 {
40 bool flag = BaseInvokableCall.AllowInvoke(this.Delegate);
42 if (!flag)
43 {
44 return;
45 }
46 if (!flag)
47 {
48 throw new InvalidCastException();
49 }
50 if (args != null && args == null)
51 {
52 throw new InvalidCastException();
53 }
54 }
55
56 // Token: 0x0600069A RID: 1690 RVA: 0x0000BCA0 File Offset: 0x00009EA0
57 public override bool Find(object targetObj, MethodInfo method)
58 {
59 /*
60An exception occurred when decompiling this method (0600069A)
61
62ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean UnityEngine.Events.InvokableCall`3::Find(System.Object,System.Reflection.MethodInfo)
63
64 ---> System.Exception: Basic block has to end with unconditional control flow.
65{
66 Block_0:
67 stloc:UnityAction`3(var_0_06, ldfld:class UnityEngine.Events.UnityAction`3<!T1, !T2, !T3>[exp:UnityAction`3](InvokableCall`3::Delegate, ldloc:InvokableCall`3(this)))
68}
69
70 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
71 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
72 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
73 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
74 --- End of inner exception stack trace ---
75 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
76 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
77*/;
78 }
79
80 // Token: 0x04000651 RID: 1617
84 }
85}
class f__AnonymousType0<< Count > j__TPar
static Delegate CreateDelegate(Type type, object firstArgument, MethodInfo method, bool throwOnBindFailure, bool allowClosed)
Definition Delegate.cs:76
static bool AllowInvoke(Delegate @delegate)
override bool Find(object targetObj, MethodInfo method)
InvokableCall(object target, MethodInfo theFunction)
override void Invoke(object[] args)
UnityAction< T1, T2, T3 > Delegate