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.cs
Go to the documentation of this file.
1using System;
5
6namespace UnityEngine.Events
7{
8 // Token: 0x0200015D RID: 349
9 internal class InvokableCall : BaseInvokableCall
10 {
11 // Token: 0x14000005 RID: 5
12 // (add) Token: 0x06000687 RID: 1671 RVA: 0x0000B97C File Offset: 0x00009B7C
13 // (remove) Token: 0x06000688 RID: 1672 RVA: 0x0000B9A0 File Offset: 0x00009BA0
14 private event UnityAction Delegate
15 {
17 add
18 {
19 if (global::System.Delegate.Combine(this.Delegate, value) != null)
20 {
21 }
22 }
24 remove
25 {
26 if (global::System.Delegate.Remove(this.Delegate, value) != null)
27 {
28 }
29 }
30 }
31
32 // Token: 0x06000689 RID: 1673 RVA: 0x0000B9C4 File Offset: 0x00009BC4
33 public InvokableCall(object target, MethodInfo theFunction)
34 : base(target, theFunction)
35 {
36 if (!true)
37 {
38 }
39 Type type;
40 Delegate @delegate = global::System.Delegate.CreateDelegate(type, target, theFunction);
41 if (@delegate != null)
42 {
43 }
45 }
46
47 // Token: 0x0600068A RID: 1674 RVA: 0x0000B9F8 File Offset: 0x00009BF8
52
53 // Token: 0x0600068B RID: 1675 RVA: 0x0000BA14 File Offset: 0x00009C14
54 public override void Invoke(object[] args)
55 {
56 bool flag = BaseInvokableCall.AllowInvoke(this.Delegate);
58 IntPtr invoke_impl = @delegate.invoke_impl;
59 IntPtr method_code = @delegate.method_code;
60 IntPtr method = @delegate.method;
61 }
62
63 // Token: 0x0600068C RID: 1676 RVA: 0x0000BA4C File Offset: 0x00009C4C
64 public void Invoke()
65 {
66 bool flag = BaseInvokableCall.AllowInvoke(this.Delegate);
68 IntPtr invoke_impl = @delegate.invoke_impl;
69 IntPtr method_code = @delegate.method_code;
70 IntPtr method = @delegate.method;
71 }
72
73 // Token: 0x0600068D RID: 1677 RVA: 0x0000BA84 File Offset: 0x00009C84
74 public override bool Find(object targetObj, MethodInfo method)
75 {
76 /*
77An exception occurred when decompiling this method (0600068D)
78
79ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean UnityEngine.Events.InvokableCall::Find(System.Object,System.Reflection.MethodInfo)
80
81 ---> System.Exception: Basic block has to end with unconditional control flow.
82{
83 Block_0:
84 stloc:object(var_0_0B, ldfld:object(Delegate::m_target, ldfld:UnityAction[exp:Delegate](InvokableCall::Delegate, ldloc:InvokableCall(this))))
85}
86
87 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
88 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
89 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
90 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
91 --- End of inner exception stack trace ---
92 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
93 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
94*/;
95 }
96
97 // Token: 0x0400064E RID: 1614
100 private UnityAction Delegate;
101 }
102}
class f__AnonymousType0<< Count > j__TPar
static Delegate Combine(Delegate a, Delegate b)
Definition Delegate.cs:255
static Delegate CreateDelegate(Type type, object firstArgument, MethodInfo method, bool throwOnBindFailure, bool allowClosed)
Definition Delegate.cs:76
static Delegate Remove(Delegate source, Delegate value)
Definition Delegate.cs:278
static bool AllowInvoke(Delegate @delegate)
override bool Find(object targetObj, MethodInfo method)
InvokableCall(UnityAction action)
InvokableCall(object target, MethodInfo theFunction)
override void Invoke(object[] args)