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
LogicalCallContext.cs
Go to the documentation of this file.
1using System;
6
8{
9 // Token: 0x02000394 RID: 916
10 [ComVisible(true)]
13 {
14 // Token: 0x06001D8F RID: 7567 RVA: 0x00040798 File Offset: 0x0003E998
16 {
17 }
18
19 // Token: 0x06001D90 RID: 7568 RVA: 0x000407AC File Offset: 0x0003E9AC
21 {
22 SerializationInfoEnumerator enumerator = info.GetEnumerator();
23 bool flag = enumerator.MoveNext();
24 bool flag2 = enumerator.Name.Equals("__RemotingData");
25 object value = enumerator.Value;
26 if (value != null)
27 {
29 return;
30 }
31 }
32
33 // Token: 0x06001D91 RID: 7569 RVA: 0x00040884 File Offset: 0x0003EA84
35 {
36 int num;
37 do
38 {
39 num = 1;
40 }
41 while (info == null);
42 if (num == 0)
43 {
44 }
46 if (remotingData != null)
47 {
48 info.AddValue("__RemotingData", remotingData);
49 }
51 if (securityData != null)
52 {
53 info.AddValue("__SecurityData", securityData);
54 }
55 object hostContext = this.m_HostContext;
56 if (hostContext != null)
57 {
58 info.AddValue("__HostContext", hostContext);
59 }
60 if (this.m_IsCorrelationMgr)
61 {
62 int num2 = 1;
63 info.AddValue("__CorrelationMgrSlotPresent", num2 != 0);
64 }
65 if (this.m_Datastore != null)
66 {
68 return;
69 }
70 }
71
72 // Token: 0x06001D92 RID: 7570 RVA: 0x00040914 File Offset: 0x0003EB14
73 public object Clone()
74 {
76 if (remotingData != null)
77 {
78 object obj = remotingData.Clone();
79 if (obj != null)
80 {
81 return obj;
82 }
83 }
85 if (securityData != null && securityData.Clone() != null)
86 {
87 throw new InvalidCastException();
88 }
89 if (this.m_HostContext != null)
90 {
91 }
95 if (this.m_IsCorrelationMgr)
96 {
97 if (datastore2 != null)
98 {
99 }
100 if (datastore2 == null)
101 {
102 throw new InvalidCastException();
103 }
104 if (datastore2 == null)
105 {
106 throw new InvalidCastException();
107 }
108 }
109 if (datastore2 != null)
110 {
111 }
112 throw new InvalidCastException();
113 }
114
115 // Token: 0x06001D93 RID: 7571 RVA: 0x000409A0 File Offset: 0x0003EBA0
117 {
118 if (lc != null && lc.m_Datastore != null)
119 {
120 Hashtable datastore = lc.Datastore;
121 return;
122 }
123 }
124
125 // Token: 0x17000391 RID: 913
126 // (get) Token: 0x06001D94 RID: 7572 RVA: 0x000409CC File Offset: 0x0003EBCC
127 public bool HasInfo
128 {
129 get
130 {
132 if (remotingData == null || remotingData._logicalCallID == null)
133 {
135 if ((securityData == null || securityData._principal == null) && this.m_HostContext == null)
136 {
137 if (true)
138 {
139 }
140 }
141 }
142 return true;
143 }
144 }
145
146 // Token: 0x17000392 RID: 914
147 // (get) Token: 0x06001D95 RID: 7573 RVA: 0x00040A0C File Offset: 0x0003EC0C
148 private bool HasUserData
149 {
150 get
151 {
152 /*
153An exception occurred when decompiling this method (06001D95)
154
155ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean System.Runtime.Remoting.Messaging.LogicalCallContext::get_HasUserData()
156
157 ---> System.Exception: Basic block has to end with unconditional control flow.
158{
159 IL_0000:
160 brtrue(IL_0000, logicnot:bool(ldfld:Hashtable[exp:bool](LogicalCallContext::m_Datastore, ldloc:LogicalCallContext(this))))
161}
162
163 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
164 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
165 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
166 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
167 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
168 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
169 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
170 --- End of inner exception stack trace ---
171 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
172 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
173*/;
174 }
175 }
176
177 // Token: 0x17000393 RID: 915
178 // (get) Token: 0x06001D96 RID: 7574 RVA: 0x00040A20 File Offset: 0x0003EC20
180 {
181 get
182 {
183 /*
184An exception occurred when decompiling this method (06001D96)
185
186ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Collections.Hashtable System.Runtime.Remoting.Messaging.LogicalCallContext::get_Datastore()
187
188 ---> System.Exception: Basic block has to end with unconditional control flow.
189{
190 IL_0000:
191 brtrue(IL_0000, ldfld:Hashtable[exp:bool](LogicalCallContext::m_Datastore, ldloc:LogicalCallContext(this)))
192}
193
194 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
195 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
196 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
197 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
198 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
199 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
200 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
201 --- End of inner exception stack trace ---
202 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
203 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
204*/;
205 }
206 }
207
208 // Token: 0x06001D97 RID: 7575 RVA: 0x00040A34 File Offset: 0x0003EC34
209 public object GetData(string name)
210 {
211 /*
212An exception occurred when decompiling this method (06001D97)
213
214ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Object System.Runtime.Remoting.Messaging.LogicalCallContext::GetData(System.String)
215
216 ---> System.Exception: Basic block has to end with unconditional control flow.
217{
218 Block_0:
219 stloc:Hashtable(var_0_06, callgetter:Hashtable(LogicalCallContext::get_Datastore, ldloc:LogicalCallContext(this)))
220}
221
222 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
223 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
224 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
225 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
226 --- End of inner exception stack trace ---
227 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
228 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
229*/;
230 }
231
232 // Token: 0x06001D98 RID: 7576 RVA: 0x00040A48 File Offset: 0x0003EC48
233 public void SetData(string name, object data)
234 {
236 bool flag = name.Equals("System.Diagnostics.Trace.CorrelationManagerSlot");
238 }
239
240 // Token: 0x06001D99 RID: 7577 RVA: 0x00040A70 File Offset: 0x0003EC70
241 // Note: this type is marked as 'beforefieldinit'.
243 {
244 if (!true)
245 {
246 }
247 }
248
249 // Token: 0x04000EE2 RID: 3810
250 private static Type s_callContextType;
251
252 // Token: 0x04000EE3 RID: 3811
253 private const string s_CorrelationMgrSlotName = "System.Diagnostics.Trace.CorrelationManagerSlot";
254
255 // Token: 0x04000EE4 RID: 3812
257
258 // Token: 0x04000EE5 RID: 3813
260
261 // Token: 0x04000EE6 RID: 3814
263
264 // Token: 0x04000EE7 RID: 3815
265 private object m_HostContext;
266
267 // Token: 0x04000EE8 RID: 3816
268 private bool m_IsCorrelationMgr;
269
270 // Token: 0x04000EE9 RID: 3817
272
273 // Token: 0x04000EEA RID: 3818
275
276 // Token: 0x02000395 RID: 917
277 internal struct Reader
278 {
279 // Token: 0x06001D9A RID: 7578 RVA: 0x00040A80 File Offset: 0x0003EC80
281 {
282 this.m_ctx = ctx;
283 }
284
285 // Token: 0x17000394 RID: 916
286 // (get) Token: 0x06001D9B RID: 7579 RVA: 0x0000207A File Offset: 0x0000027A
287 public bool IsNull
288 {
289 get
290 {
291 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
292 }
293 }
294
295 // Token: 0x17000395 RID: 917
296 // (get) Token: 0x06001D9C RID: 7580 RVA: 0x00040A94 File Offset: 0x0003EC94
297 public bool HasInfo
298 {
299 get
300 {
301 bool flag;
302 return flag;
303 }
304 }
305
306 // Token: 0x06001D9D RID: 7581 RVA: 0x00040AA4 File Offset: 0x0003ECA4
308 {
309 object obj;
310 if (obj != null)
311 {
312 }
313 throw new InvalidCastException();
314 }
315
316 // Token: 0x06001D9E RID: 7582 RVA: 0x0000207A File Offset: 0x0000027A
317 public object GetData(string name)
318 {
319 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
320 }
321
322 // Token: 0x04000EEB RID: 3819
324 }
325 }
326}
class f__AnonymousType0<< Count > j__TPar
LogicalCallContext(SerializationInfo info, StreamingContext context)
void GetObjectData(SerializationInfo info, StreamingContext context)
void AddValue(string name, object value, Type type)