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
NestedContainer.cs
Go to the documentation of this file.
1using System;
4
6{
7 // Token: 0x020003A8 RID: 936
9 {
10 // Token: 0x060018AB RID: 6315 RVA: 0x00045858 File Offset: 0x00043A58
12 {
13 do
14 {
15 base..ctor();
16 }
17 while (owner == null);
18 this.Owner = owner;
19 }
20
21 // Token: 0x170005A0 RID: 1440
22 // (get) Token: 0x060018AC RID: 6316 RVA: 0x00045878 File Offset: 0x00043A78
24 {
26 get
27 {
28 return this.<Owner>k__BackingField;
29 }
30 }
31
32 // Token: 0x170005A1 RID: 1441
33 // (get) Token: 0x060018AD RID: 6317 RVA: 0x0004588C File Offset: 0x00043A8C
34 protected virtual string OwnerName
35 {
36 get
37 {
38 /*
39An exception occurred when decompiling this method (060018AD)
40
41ICSharpCode.Decompiler.DecompilerException: Error decompiling System.String System.ComponentModel.NestedContainer::get_OwnerName()
42
43 ---> System.Exception: Basic block has to end with unconditional control flow.
44{
45 IL_001E:
46 stloc:IComponent(var_3_24, ldfld:IComponent(NestedContainer::<Owner>k__BackingField, ldloc:NestedContainer(this)))
47}
48
49 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
50 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
51 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
52 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
53 --- End of inner exception stack trace ---
54 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
55 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
56*/;
57 }
58 }
59
60 // Token: 0x060018AE RID: 6318 RVA: 0x000458C0 File Offset: 0x00043AC0
61 protected override ISite CreateSite(IComponent component, string name)
62 {
63 /*
64An exception occurred when decompiling this method (060018AE)
65
66ICSharpCode.Decompiler.DecompilerException: Error decompiling System.ComponentModel.ISite System.ComponentModel.NestedContainer::CreateSite(System.ComponentModel.IComponent,System.String)
67
68 ---> System.Exception: Basic block has to end with unconditional control flow.
69{
70 IL_0000:
71 brtrue(IL_0000, logicnot:bool(ldloc:IComponent[exp:bool](component)))
72}
73
74 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
75 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
76 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
77 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
78 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
79 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
80 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
81 --- End of inner exception stack trace ---
82 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
83 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
84*/;
85 }
86
87 // Token: 0x060018AF RID: 6319 RVA: 0x000458D0 File Offset: 0x00043AD0
88 protected override void Dispose(bool disposing)
89 {
90 IComponent component = this.<Owner>k__BackingField;
91 }
92
93 // Token: 0x060018B0 RID: 6320 RVA: 0x000458EC File Offset: 0x00043AEC
94 protected override object GetService(Type service)
95 {
96 if (!true)
97 {
98 }
99 Type type;
100 bool flag = service == type;
101 return base.GetService(service);
102 }
103
104 // Token: 0x060018B1 RID: 6321 RVA: 0x0004590C File Offset: 0x00043B0C
105 private void OnOwnerDisposed(object sender, EventArgs e)
106 {
107 base.Dispose();
108 }
109
110 // Token: 0x04001296 RID: 4758
112 private readonly IComponent <Owner>k__BackingField;
113
114 // Token: 0x020003A9 RID: 937
116 {
117 // Token: 0x060018B2 RID: 6322 RVA: 0x00045920 File Offset: 0x00043B20
118 internal Site(IComponent component, NestedContainer container, string name)
119 {
121 this.Component = component;
122 this.Container = container;
123 }
124
125 // Token: 0x170005A2 RID: 1442
126 // (get) Token: 0x060018B3 RID: 6323 RVA: 0x00045948 File Offset: 0x00043B48
128 {
130 get
131 {
132 return this.<Component>k__BackingField;
133 }
134 }
135
136 // Token: 0x170005A3 RID: 1443
137 // (get) Token: 0x060018B4 RID: 6324 RVA: 0x0004595C File Offset: 0x00043B5C
139 {
141 get
142 {
143 return this.<Container>k__BackingField;
144 }
145 }
146
147 // Token: 0x060018B5 RID: 6325 RVA: 0x00045970 File Offset: 0x00043B70
148 public object GetService(Type service)
149 {
150 if (!true)
151 {
152 }
153 Type type;
154 bool flag = service == type;
155 IContainer container = this.<Container>k__BackingField;
156 throw new InvalidCastException();
157 }
158
159 // Token: 0x170005A4 RID: 1444
160 // (get) Token: 0x060018B6 RID: 6326 RVA: 0x00045994 File Offset: 0x00043B94
161 public bool DesignMode
162 {
163 get
164 {
165 if (this.<Container>k__BackingField != null)
166 {
167 }
168 if (this == null || this != null)
169 {
170 }
171 long value = 0.m_value;
172 throw new InvalidCastException();
173 }
174 }
175
176 // Token: 0x170005A5 RID: 1445
177 // (get) Token: 0x060018B7 RID: 6327 RVA: 0x000459BC File Offset: 0x00043BBC
178 public string FullName
179 {
180 get
181 {
182 if (this._name != null)
183 {
184 IContainer container = this.<Container>k__BackingField;
185 string name = this._name;
186 if (container != null)
187 {
189 string text;
190 return text;
191 }
192 }
193 throw new InvalidCastException();
194 }
195 }
196
197 // Token: 0x170005A6 RID: 1446
198 // (get) Token: 0x060018B8 RID: 6328 RVA: 0x000459F8 File Offset: 0x00043BF8
199 // (set) Token: 0x060018B9 RID: 6329 RVA: 0x00045A0C File Offset: 0x00043C0C
200 public string Name
201 {
202 get
203 {
204 return this._name;
205 }
206 set
207 {
208 if (value != null)
209 {
210 string name = this._name;
211 if (name != null)
212 {
213 bool flag = value.Equals(name);
214 }
215 }
216 IContainer container = this.<Container>k__BackingField;
217 IComponent component = this.<Component>k__BackingField;
219 }
220 }
221
222 // Token: 0x04001297 RID: 4759
223 private string _name;
224
225 // Token: 0x04001298 RID: 4760
228
229 // Token: 0x04001299 RID: 4761
232 }
233 }
234}
class f__AnonymousType0<< Count > j__TPar
readonly IComponent< Component > k__BackingField
readonly IContainer< Container > k__BackingField
Site(IComponent component, NestedContainer container, string name)
override object GetService(Type service)
void OnOwnerDisposed(object sender, EventArgs e)
readonly IComponent< Owner > k__BackingField
override void Dispose(bool disposing)
override ISite CreateSite(IComponent component, string name)
static CultureInfo InvariantCulture