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.2.cs
Go to the documentation of this file.
1using System;
5
6namespace UnityEngine.Events
7{
8 // Token: 0x0200015E RID: 350
9 internal class InvokableCall<T1> : BaseInvokableCall
10 {
11 // Token: 0x14000006 RID: 6
12 // (add) Token: 0x0600068E RID: 1678 RVA: 0x0000BAA0 File Offset: 0x00009CA0
13 // (remove) Token: 0x0600068F RID: 1679 RVA: 0x0000BAC8 File Offset: 0x00009CC8
14 protected event UnityAction<T1> Delegate
15 {
17 add
18 {
19 Delegate @delegate = global::System.Delegate.Combine(this.Delegate, value);
20 if (@delegate != null && @delegate == null)
21 {
22 return;
23 }
24 }
26 remove
27 {
28 Delegate @delegate = global::System.Delegate.Remove(this.Delegate, value);
29 if (@delegate != null && @delegate == null)
30 {
31 return;
32 }
33 }
34 }
35
36 // Token: 0x06000690 RID: 1680 RVA: 0x0000BAF0 File Offset: 0x00009CF0
37 public InvokableCall(object target, MethodInfo theFunction)
38 : base(target, theFunction)
39 {
40 Type type;
41 Delegate @delegate = global::System.Delegate.CreateDelegate(type, target, theFunction);
42 if (@delegate != null && @delegate == null)
43 {
44 throw new InvalidCastException();
45 }
46 }
47
48 // Token: 0x06000691 RID: 1681 RVA: 0x0000BB1C File Offset: 0x00009D1C
52
53 // Token: 0x06000692 RID: 1682 RVA: 0x0000BB30 File Offset: 0x00009D30
54 public override void Invoke(object[] args)
55 {
56 bool flag = BaseInvokableCall.AllowInvoke(this.Delegate);
58 }
59
60 // Token: 0x06000693 RID: 1683 RVA: 0x0000BB58 File Offset: 0x00009D58
61 public virtual void Invoke(T1 args0)
62 {
63 bool flag = BaseInvokableCall.AllowInvoke(this.Delegate);
65 }
66
67 // Token: 0x06000694 RID: 1684 RVA: 0x0000BB7C File Offset: 0x00009D7C
68 public override bool Find(object targetObj, MethodInfo method)
69 {
70 /*
71An exception occurred when decompiling this method (06000694)
72
73ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean UnityEngine.Events.InvokableCall`1::Find(System.Object,System.Reflection.MethodInfo)
74
75 ---> System.Exception: Basic block has to end with unconditional control flow.
76{
77 Block_0:
78 stloc:UnityAction`1(var_0_06, ldfld:class UnityEngine.Events.UnityAction`1<!T1>[exp:UnityAction`1](InvokableCall`1::Delegate, ldloc:InvokableCall`1(this)))
79}
80
81 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
82 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
83 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
84 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
85 --- End of inner exception stack trace ---
86 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
87 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
88*/;
89 }
90
91 // Token: 0x0400064F RID: 1615
95 }
96}
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)
virtual void Invoke(T1 args0)
InvokableCall(UnityAction< T1 > action)
InvokableCall(object target, MethodInfo theFunction)
override void Invoke(object[] args)