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
Container.cs
Go to the documentation of this file.
1using System;
4
6{
7 // Token: 0x020003DC RID: 988
9 {
10 // Token: 0x06001A16 RID: 6678 RVA: 0x0004817C File Offset: 0x0004637C
11 protected override void Finalize()
12 {
13 base.Finalize();
14 }
15
16 // Token: 0x06001A17 RID: 6679 RVA: 0x000481B0 File Offset: 0x000463B0
17 public virtual void Add(IComponent component)
18 {
19 }
20
21 // Token: 0x06001A18 RID: 6680 RVA: 0x000481C0 File Offset: 0x000463C0
22 public virtual void Add(IComponent component, string name)
23 {
24 object obj = this.syncObj;
25 if (component != null)
26 {
27 return;
28 }
29 long num;
30 if (num != 0L)
31 {
33 }
34 long num2;
35 if (num2 == 0L)
36 {
37 return;
38 }
39 throw new OutOfMemoryException();
40 }
41
42 // Token: 0x06001A19 RID: 6681 RVA: 0x00002050 File Offset: 0x00000250
43 protected virtual ISite CreateSite(IComponent component, string name)
44 {
45 throw new global::Cpp2IlInjected.AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
46 }
47
48 // Token: 0x06001A1A RID: 6682 RVA: 0x00048278 File Offset: 0x00046478
49 public void Dispose()
50 {
51 GC.SuppressFinalize(this);
52 }
53
54 // Token: 0x06001A1B RID: 6683 RVA: 0x0004828C File Offset: 0x0004648C
55 protected virtual void Dispose(bool disposing)
56 {
57 object obj = this.syncObj;
59 int num = this.siteCount;
60 ISite[] array = this.sites;
61 this.siteCount = num;
62 }
63
64 // Token: 0x06001A1C RID: 6684 RVA: 0x000482F4 File Offset: 0x000464F4
65 protected virtual object GetService(Type service)
66 {
67 /*
68An exception occurred when decompiling this method (06001A1C)
69
70ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Object System.ComponentModel.Container::GetService(System.Type)
71
72 ---> System.Exception: Basic block has to end with unconditional control flow.
73{
74 IL_0003:
75 stloc:bool(var_1_0A, call:bool(Type::op_Equality, ldloc:Type(service), ldloc:Type(var_0)))
76}
77
78 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
79 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
80 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
81 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
82 --- End of inner exception stack trace ---
83 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
84 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
85*/;
86 }
87
88 // Token: 0x170005FD RID: 1533
89 // (get) Token: 0x06001A1D RID: 6685 RVA: 0x0004830C File Offset: 0x0004650C
91 {
92 get
93 {
94 object obj = this.syncObj;
95 if (this.components == null)
96 {
97 int num = this.siteCount;
98 int num2 = this.siteCount;
99 ISite[] array = this.sites;
100 if (this.filter != null || this.checkedFilter)
101 {
102 }
103 }
104 long num3;
105 if (!this.checkedFilter || this.filter == null)
106 {
107 if (this != null)
108 {
109 }
110 num3 = 0L;
112 if (num3 == 0L)
113 {
114 goto IL_006D;
115 }
116 }
118 if (num3 != 0L)
119 {
121 }
122 IL_006D:
123 long num4 = 0L;
124 if (num3 != 0L)
125 {
127 }
128 if (num4 == 0L)
129 {
130 throw new ArrayTypeMismatchException();
131 }
132 throw new OutOfMemoryException();
133 }
134 }
135
136 // Token: 0x06001A1E RID: 6686 RVA: 0x000483C4 File Offset: 0x000465C4
137 public virtual void Remove(IComponent component)
138 {
139 long num = 0L;
140 this.Remove(component, num != 0L);
141 }
142
143 // Token: 0x06001A1F RID: 6687 RVA: 0x000483DC File Offset: 0x000465DC
144 private void Remove(IComponent component, bool preserveSite)
145 {
146 object obj = this.syncObj;
147 if (component != null)
148 {
149 return;
150 }
152 long num;
153 if (num == 0L)
154 {
155 return;
156 }
157 throw new OutOfMemoryException();
158 }
159
160 // Token: 0x06001A20 RID: 6688 RVA: 0x0004845C File Offset: 0x0004665C
161 protected void RemoveWithoutUnsiting(IComponent component)
162 {
163 this.Remove(component, true);
164 }
165
166 // Token: 0x06001A21 RID: 6689 RVA: 0x00048474 File Offset: 0x00046674
167 protected virtual void ValidateName(IComponent component, string name)
168 {
169 int num;
170 do
171 {
172 num = 1;
173 }
174 while (component == null);
175 if (name == null)
176 {
177 return;
178 }
179 int num2 = this.siteCount;
180 ISite[] array = this.sites;
181 if (num == 0)
182 {
183 }
184 ISite[] array2 = this.sites;
185 if (num2 != 0)
186 {
187 return;
188 }
189 }
190
191 // Token: 0x06001A22 RID: 6690 RVA: 0x000484F4 File Offset: 0x000466F4
192 public Container()
193 {
194 }
195
196 // Token: 0x040012FB RID: 4859
197 private ISite[] sites;
198
199 // Token: 0x040012FC RID: 4860
200 private int siteCount;
201
202 // Token: 0x040012FD RID: 4861
204
205 // Token: 0x040012FE RID: 4862
207
208 // Token: 0x040012FF RID: 4863
209 private bool checkedFilter;
210
211 // Token: 0x04001300 RID: 4864
212 private object syncObj;
213
214 // Token: 0x020003DD RID: 989
215 private class Site : ISite, IServiceProvider
216 {
217 // Token: 0x06001A23 RID: 6691 RVA: 0x00048508 File Offset: 0x00046708
224
225 // Token: 0x170005FE RID: 1534
226 // (get) Token: 0x06001A24 RID: 6692 RVA: 0x00048530 File Offset: 0x00046730
228 {
229 get
230 {
231 return this.component;
232 }
233 }
234
235 // Token: 0x170005FF RID: 1535
236 // (get) Token: 0x06001A25 RID: 6693 RVA: 0x00048544 File Offset: 0x00046744
238 {
239 get
240 {
241 /*
242An exception occurred when decompiling this method (06001A25)
243
244ICSharpCode.Decompiler.DecompilerException: Error decompiling System.ComponentModel.IContainer System.ComponentModel.Container/Site::get_Container()
245
246 ---> System.Exception: Basic block has to end with unconditional control flow.
247{
248 Block_0:
249 stloc:Container(var_0_06, ldfld:Container(Site::container, ldloc:Site(this)))
250}
251
252 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
253 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
254 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
255 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
256 --- End of inner exception stack trace ---
257 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
258 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
259*/;
260 }
261 }
262
263 // Token: 0x06001A26 RID: 6694 RVA: 0x00048558 File Offset: 0x00046758
264 public object GetService(Type service)
265 {
266 /*
267An exception occurred when decompiling this method (06001A26)
268
269ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Object System.ComponentModel.Container/Site::GetService(System.Type)
270
271 ---> System.Exception: Basic block has to end with unconditional control flow.
272{
273 IL_0003:
274 stloc:bool(var_1_0A, call:bool(Type::op_Equality, ldloc:Type(service), ldloc:Type(var_0)))
275 stloc:Container(var_2_11, ldfld:Container(Site::container, ldloc:Site(this)))
276}
277
278 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
279 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
280 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
281 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
282 --- End of inner exception stack trace ---
283 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
284 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
285*/;
286 }
287
288 // Token: 0x17000600 RID: 1536
289 // (get) Token: 0x06001A27 RID: 6695 RVA: 0x00048578 File Offset: 0x00046778
290 public bool DesignMode
291 {
292 get
293 {
294 }
295 }
296
297 // Token: 0x17000601 RID: 1537
298 // (get) Token: 0x06001A28 RID: 6696 RVA: 0x00048588 File Offset: 0x00046788
299 // (set) Token: 0x06001A29 RID: 6697 RVA: 0x0004859C File Offset: 0x0004679C
300 public string Name
301 {
302 get
303 {
304 return this.name;
305 }
306 set
307 {
308 if (value != null && value != null)
309 {
310 bool flag = value.Equals(value);
311 }
312 }
313 }
314
315 // Token: 0x04001301 RID: 4865
317
318 // Token: 0x04001302 RID: 4866
320
321 // Token: 0x04001303 RID: 4867
322 private string name;
323 }
324 }
325}
class f__AnonymousType0<< Count > j__TPar
object GetService(Type service)
Definition Container.cs:264
Site(IComponent component, Container container, string name)
Definition Container.cs:218
virtual void Add(IComponent component)
Definition Container.cs:17
virtual ComponentCollection Components
Definition Container.cs:91
virtual object GetService(Type service)
Definition Container.cs:65
ContainerFilterService filter
Definition Container.cs:206
ComponentCollection components
Definition Container.cs:203
virtual ISite CreateSite(IComponent component, string name)
Definition Container.cs:43
virtual void Add(IComponent component, string name)
Definition Container.cs:22
virtual void Dispose(bool disposing)
Definition Container.cs:55
void RemoveWithoutUnsiting(IComponent component)
Definition Container.cs:161
virtual void Remove(IComponent component)
Definition Container.cs:137
void Remove(IComponent component, bool preserveSite)
Definition Container.cs:144
virtual void ValidateName(IComponent component, string name)
Definition Container.cs:167
static void SuppressFinalize(object obj)
Definition GC.cs:116
static void Exit(object obj)
Definition Monitor.cs:47
static void Enter(object obj)
Definition Monitor.cs:11