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
ReflectEventDescriptor.cs
Go to the documentation of this file.
1using System;
4
6{
7 // Token: 0x020003B3 RID: 947
8 internal sealed class ReflectEventDescriptor : EventDescriptor
9 {
10 // Token: 0x06001942 RID: 6466 RVA: 0x00046BA4 File Offset: 0x00044DA4
11 public ReflectEventDescriptor(Type componentClass, string name, Type type, Attribute[] attributes)
13 {
14 if (!true)
15 {
16 }
17 if (!true)
18 {
19 }
20 this._type = type;
21 this._componentClass = componentClass;
22 }
23
24 // Token: 0x06001943 RID: 6467 RVA: 0x00046BE0 File Offset: 0x00044DE0
26 {
27 if (!true)
28 {
29 }
30 this._componentClass = componentClass;
31 }
32
33 // Token: 0x06001944 RID: 6468 RVA: 0x00046C08 File Offset: 0x00044E08
41
42 // Token: 0x170005C8 RID: 1480
43 // (get) Token: 0x06001945 RID: 6469 RVA: 0x00046C34 File Offset: 0x00044E34
44 public override Type ComponentType
45 {
46 get
47 {
48 return this._componentClass;
49 }
50 }
51
52 // Token: 0x170005C9 RID: 1481
53 // (get) Token: 0x06001946 RID: 6470 RVA: 0x00046C48 File Offset: 0x00044E48
54 public override Type EventType
55 {
56 get
57 {
58 this.FillMethods();
59 return this._type;
60 }
61 }
62
63 // Token: 0x170005CA RID: 1482
64 // (get) Token: 0x06001947 RID: 6471 RVA: 0x00046C64 File Offset: 0x00044E64
65 public override bool IsMulticast
66 {
67 get
68 {
69 /*
70An exception occurred when decompiling this method (06001947)
71
72ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean System.ComponentModel.ReflectEventDescriptor::get_IsMulticast()
73
74 ---> System.Exception: Basic block has to end with unconditional control flow.
75{
76 IL_0000:
77 brtrue(IL_0000, ldc.i4:bool(1))
78}
79
80 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
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 1878
82 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
83 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
84 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
85 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
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 88
87 --- End of inner exception stack trace ---
88 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
89 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
90*/;
91 }
92 }
93
94 // Token: 0x06001948 RID: 6472 RVA: 0x00046C74 File Offset: 0x00044E74
95 public override void AddEventHandler(object component, Delegate value)
96 {
97 this.FillMethods();
98 if (component == null)
99 {
100 return;
101 }
102 ISite site = MemberDescriptor.GetSite(component);
103 if (site != null)
104 {
105 return;
106 }
107 }
108
109 // Token: 0x06001949 RID: 6473 RVA: 0x00046D04 File Offset: 0x00044F04
110 protected override void FillAttributes(IList attributes)
111 {
112 this.FillMethods();
115 }
116
117 // Token: 0x0600194A RID: 6474 RVA: 0x00046D3C File Offset: 0x00044F3C
121
122 // Token: 0x0600194B RID: 6475 RVA: 0x00046D70 File Offset: 0x00044F70
123 private void FillMethods()
124 {
125 if (this._filledMethods)
126 {
127 return;
128 }
130 Type componentClass = this._componentClass;
133 Type type = this._type;
134 if (type == null || type != null)
135 {
144 string text = SR.Format("Accessor methods for the {0} event are missing.", this);
145 return;
146 }
147 throw new ArrayTypeMismatchException();
148 }
149
150 // Token: 0x0600194C RID: 6476 RVA: 0x00046DF4 File Offset: 0x00044FF4
154
155 // Token: 0x0600194D RID: 6477 RVA: 0x00046E28 File Offset: 0x00045028
156 public override void RemoveEventHandler(object component, Delegate value)
157 {
158 this.FillMethods();
159 if (component == null)
160 {
161 return;
162 }
163 ISite site = MemberDescriptor.GetSite(component);
164 if (site != null)
165 {
166 return;
167 }
168 }
169
170 // Token: 0x040012BC RID: 4796
171 private Type _type;
172
173 // Token: 0x040012BD RID: 4797
175
176 // Token: 0x040012BE RID: 4798
178
179 // Token: 0x040012BF RID: 4799
181
182 // Token: 0x040012C0 RID: 4800
184
185 // Token: 0x040012C1 RID: 4801
186 private bool _filledMethods;
187 }
188}
class f__AnonymousType0<< Count > j__TPar
static string Format(string resourceFormat, params object[] args)
Definition SR.cs:33
Definition SR.cs:7
static ISite GetSite(object component)
override void RemoveEventHandler(object component, Delegate value)
ReflectEventDescriptor(Type componentType, EventDescriptor oldReflectEventDescriptor, Attribute[] attributes)
ReflectEventDescriptor(Type componentClass, string name, Type type, Attribute[] attributes)
void FillSingleMethodAttribute(MethodInfo realMethodInfo, IList attributes)
void FillEventInfoAttribute(EventInfo realEventInfo, IList attributes)
ReflectEventDescriptor(Type componentClass, EventInfo eventInfo)
override void AddEventHandler(object component, Delegate value)