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
EventInfo.cs
Go to the documentation of this file.
1using System;
3using Mono;
4
5namespace System.Reflection
6{
7 // Token: 0x020004D0 RID: 1232
9 public abstract class EventInfo : MemberInfo
10 {
11 // Token: 0x06002380 RID: 9088 RVA: 0x000504F0 File Offset: 0x0004E6F0
12 protected EventInfo()
13 {
14 }
15
16 // Token: 0x1700049B RID: 1179
17 // (get) Token: 0x06002381 RID: 9089 RVA: 0x00050504 File Offset: 0x0004E704
18 public override MemberTypes MemberType
19 {
20 get
21 {
22 return MemberTypes.Event;
23 }
24 }
25
26 // Token: 0x06002382 RID: 9090 RVA: 0x0000207A File Offset: 0x0000027A
28 {
29 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
30 }
31
32 // Token: 0x06002383 RID: 9091 RVA: 0x0000207A File Offset: 0x0000027A
34 {
35 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
36 }
37
38 // Token: 0x06002384 RID: 9092
39 public abstract MethodInfo GetAddMethod(bool nonPublic);
40
41 // Token: 0x06002385 RID: 9093
42 public abstract MethodInfo GetRemoveMethod(bool nonPublic);
43
44 // Token: 0x06002386 RID: 9094
45 public abstract MethodInfo GetRaiseMethod(bool nonPublic);
46
47 // Token: 0x1700049C RID: 1180
48 // (get) Token: 0x06002387 RID: 9095 RVA: 0x00050514 File Offset: 0x0004E714
49 public virtual Type EventHandlerType
50 {
51 get
52 {
53 }
54 }
55
56 // Token: 0x06002388 RID: 9096 RVA: 0x00050524 File Offset: 0x0004E724
57 public override bool Equals(object obj)
58 {
59 return base.Equals(obj);
60 }
61
62 // Token: 0x06002389 RID: 9097 RVA: 0x00050538 File Offset: 0x0004E738
63 public override int GetHashCode()
64 {
65 return base.GetHashCode();
66 }
67
68 // Token: 0x0600238A RID: 9098 RVA: 0x0005054C File Offset: 0x0004E74C
69 public static bool operator ==(EventInfo left, EventInfo right)
70 {
71 if (left != null)
72 {
73 }
74 return true;
75 }
76
77 // Token: 0x0600238B RID: 9099 RVA: 0x00050560 File Offset: 0x0004E760
78 public static bool operator !=(EventInfo left, EventInfo right)
79 {
80 /*
81An exception occurred when decompiling this method (0600238B)
82
83ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean System.Reflection.EventInfo::op_Inequality(System.Reflection.EventInfo,System.Reflection.EventInfo)
84
85 ---> System.Exception: Basic block has to end with unconditional control flow.
86{
87 IL_0000:
88 brtrue(IL_0000, logicnot:bool(ldloc:EventInfo[exp:bool](left)))
89}
90
91 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
92 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
93 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
94 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
95 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
96 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
97 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
98 --- End of inner exception stack trace ---
99 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
100 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
101*/;
102 }
103
104 // Token: 0x0600238C RID: 9100 RVA: 0x0000207A File Offset: 0x0000027A
106 {
107 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
108 }
109
110 // Token: 0x0600238D RID: 9101 RVA: 0x00050570 File Offset: 0x0004E770
112 {
113 bool flag;
114 while (!flag)
115 {
116 }
117 return "The handle is invalid.";
118 }
119
120 // Token: 0x0400138D RID: 5005
122
123 // Token: 0x020004D1 RID: 1233
124 private sealed class AddEventAdapter : MulticastDelegate
125 {
126 // Token: 0x0600238E RID: 9102 RVA: 0x00050588 File Offset: 0x0004E788
127 public AddEventAdapter(object @object, IntPtr method)
128 {
130 this.m_target = @object;
132 this.method_code = this;
133 }
134
135 // Token: 0x0600238F RID: 9103 RVA: 0x000505E8 File Offset: 0x0004E7E8
136 public void Invoke(object _this, Delegate dele)
137 {
140 IntPtr method = this.method;
141 }
142 }
143 }
144}
class f__AnonymousType0<< Count > j__TPar
IntPtr method_code
Definition Delegate.cs:386
IntPtr invoke_impl
Definition Delegate.cs:371
void Invoke(object _this, Delegate dele)
Definition EventInfo.cs:136
AddEventAdapter(object @object, IntPtr method)
Definition EventInfo.cs:127
EventInfo.AddEventAdapter cached_add_event
Definition EventInfo.cs:121
MethodInfo GetRaiseMethod(bool nonPublic)
MethodInfo GetRemoveMethod(bool nonPublic)
override bool Equals(object obj)
Definition EventInfo.cs:57
static bool operator==(EventInfo left, EventInfo right)
Definition EventInfo.cs:69
static EventInfo GetEventFromHandle(RuntimeEventHandle handle, RuntimeTypeHandle reflectedType)
Definition EventInfo.cs:111
override int GetHashCode()
Definition EventInfo.cs:63
MethodInfo GetRemoveMethod()
Definition EventInfo.cs:33
override MemberTypes MemberType
Definition EventInfo.cs:19
static bool operator!=(EventInfo left, EventInfo right)
Definition EventInfo.cs:78
static EventInfo internal_from_handle_type(IntPtr event_handle, IntPtr type_handle)
Definition EventInfo.cs:105
virtual Type EventHandlerType
Definition EventInfo.cs:50
MethodInfo GetAddMethod(bool nonPublic)