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
MethodResponse.cs
Go to the documentation of this file.
1using System;
6
8{
9 // Token: 0x020003B5 RID: 949
10 [CLSCompliant(false)]
11 [ComVisible(true)]
14 {
15 // Token: 0x06001E5B RID: 7771 RVA: 0x0004257C File Offset: 0x0004077C
17 {
18 this._callMsg = msg;
19 if (msg != null)
20 {
21 return;
22 }
23 }
24
25 // Token: 0x06001E5C RID: 7772 RVA: 0x000425AC File Offset: 0x000407AC
26 internal MethodResponse(object returnValue, object[] outArgs, LogicalCallContext callCtx, IMethodCallMessage msg)
27 {
28 this._callMsg = msg;
29 }
30
31 // Token: 0x06001E5D RID: 7773 RVA: 0x000425E0 File Offset: 0x000407E0
36
37 // Token: 0x06001E5E RID: 7774 RVA: 0x0004266C File Offset: 0x0004086C
39 {
40 SerializationInfoEnumerator enumerator = info.GetEnumerator();
41 bool flag = enumerator.MoveNext();
43 }
44
45 // Token: 0x06001E5F RID: 7775 RVA: 0x00042698 File Offset: 0x00040898
46 internal void InitMethodProperty(string key, object value)
47 {
48 uint num = <PrivateImplementationDetails>.ComputeStringHash(key);
49 bool flag = key == "__CallContext";
50 if (value != null)
51 {
53 return;
54 }
55 }
56
57 // Token: 0x170003DE RID: 990
58 // (get) Token: 0x06001E60 RID: 7776 RVA: 0x0004277C File Offset: 0x0004097C
59 public int ArgCount
60 {
61 get
62 {
63 if (this._args != null)
64 {
65 return;
66 }
67 }
68 }
69
70 // Token: 0x170003DF RID: 991
71 // (get) Token: 0x06001E61 RID: 7777 RVA: 0x00042794 File Offset: 0x00040994
72 public object[] Args
73 {
74 get
75 {
76 return this._args;
77 }
78 }
79
80 // Token: 0x170003E0 RID: 992
81 // (get) Token: 0x06001E62 RID: 7778 RVA: 0x000427A8 File Offset: 0x000409A8
83 {
84 get
85 {
86 return this._exception;
87 }
88 }
89
90 // Token: 0x170003E1 RID: 993
91 // (get) Token: 0x06001E63 RID: 7779 RVA: 0x000427BC File Offset: 0x000409BC
93 {
94 get
95 {
96 /*
97An exception occurred when decompiling this method (06001E63)
98
99ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Runtime.Remoting.Messaging.LogicalCallContext System.Runtime.Remoting.Messaging.MethodResponse::get_LogicalCallContext()
100
101 ---> System.Exception: Basic block has to end with unconditional control flow.
102{
103 IL_0000:
104 brtrue(IL_0000, ldfld:LogicalCallContext[exp:bool](MethodResponse::_callContext, ldloc:MethodResponse(this)))
105}
106
107 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
108 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
109 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
110 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
111 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
112 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
113 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
114 --- End of inner exception stack trace ---
115 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
116 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
117*/;
118 }
119 }
120
121 // Token: 0x170003E2 RID: 994
122 // (get) Token: 0x06001E64 RID: 7780 RVA: 0x000427D0 File Offset: 0x000409D0
124 {
125 get
126 {
127 MethodBase methodBase = this._methodBase;
129 if (callMsg != null)
130 {
131 }
132 if (this.MethodName != null && this.TypeName != null)
133 {
135 }
136 return this._methodBase;
137 }
138 }
139
140 // Token: 0x170003E3 RID: 995
141 // (get) Token: 0x06001E65 RID: 7781 RVA: 0x00042814 File Offset: 0x00040A14
142 public string MethodName
143 {
144 get
145 {
146 /*
147An exception occurred when decompiling this method (06001E65)
148
149ICSharpCode.Decompiler.DecompilerException: Error decompiling System.String System.Runtime.Remoting.Messaging.MethodResponse::get_MethodName()
150
151 ---> System.Exception: Basic block has to end with unconditional control flow.
152{
153 IL_0012:
154 stloc:int64(var_1_18, ldfld:int64(int64::m_value, ldc.i4:int32[exp:int64&](0)))
155 stfld:string(MethodResponse::_methodName, ldloc:MethodResponse(this), ldloc:IMethodCallMessage[exp:string](var_0_0E))
156}
157
158 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
159 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
160 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
161 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
162 --- End of inner exception stack trace ---
163 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
164 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
165*/;
166 }
167 }
168
169 // Token: 0x170003E4 RID: 996
170 // (get) Token: 0x06001E66 RID: 7782 RVA: 0x00042840 File Offset: 0x00040A40
171 public object MethodSignature
172 {
173 get
174 {
175 if (this._methodSignature != null)
176 {
177 }
179 while (callMsg == null)
180 {
181 }
182 if (callMsg != null && callMsg != null)
183 {
185 if (callMsg != null)
186 {
187 }
188 }
189 throw new InvalidCastException();
190 }
191 }
192
193 // Token: 0x170003E5 RID: 997
194 // (get) Token: 0x06001E67 RID: 7783 RVA: 0x00042874 File Offset: 0x00040A74
195 public object[] OutArgs
196 {
197 get
198 {
199 while (this._outArgs != null)
200 {
201 }
202 if (this._args != null)
203 {
204 if (this._inArgInfo == null)
205 {
206 MethodBase methodBase = this.MethodBase;
207 object[] args = this._args;
208 }
209 object[] array;
211 return array;
212 }
213 }
214 }
215
216 // Token: 0x170003E6 RID: 998
217 // (get) Token: 0x06001E68 RID: 7784 RVA: 0x000428B4 File Offset: 0x00040AB4
218 public virtual IDictionary Properties
219 {
220 get
221 {
222 while (this.ExternalProperties != null)
223 {
224 }
225 return this.ExternalProperties;
226 }
227 }
228
229 // Token: 0x170003E7 RID: 999
230 // (get) Token: 0x06001E69 RID: 7785 RVA: 0x000428D0 File Offset: 0x00040AD0
231 public object ReturnValue
232 {
233 get
234 {
235 return this._returnValue;
236 }
237 }
238
239 // Token: 0x170003E8 RID: 1000
240 // (get) Token: 0x06001E6A RID: 7786 RVA: 0x000428E4 File Offset: 0x00040AE4
241 public string TypeName
242 {
243 get
244 {
245 /*
246An exception occurred when decompiling this method (06001E6A)
247
248ICSharpCode.Decompiler.DecompilerException: Error decompiling System.String System.Runtime.Remoting.Messaging.MethodResponse::get_TypeName()
249
250 ---> System.Exception: Basic block has to end with unconditional control flow.
251{
252 IL_0012:
253 stloc:int64(var_1_18, ldfld:int64(int64::m_value, ldc.i4:int32[exp:int64&](0)))
254 stfld:string(MethodResponse::_typeName, ldloc:MethodResponse(this), ldloc:IMethodCallMessage[exp:string](var_0_0E))
255}
256
257 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
258 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
259 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
260 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
261 --- End of inner exception stack trace ---
262 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
263 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
264*/;
265 }
266 }
267
268 // Token: 0x170003E9 RID: 1001
269 // (get) Token: 0x06001E6B RID: 7787 RVA: 0x00042910 File Offset: 0x00040B10
270 // (set) Token: 0x06001E6C RID: 7788 RVA: 0x0004293C File Offset: 0x00040B3C
271 public string Uri
272 {
273 get
274 {
275 /*
276An exception occurred when decompiling this method (06001E6B)
277
278ICSharpCode.Decompiler.DecompilerException: Error decompiling System.String System.Runtime.Remoting.Messaging.MethodResponse::get_Uri()
279
280 ---> System.Exception: Basic block has to end with unconditional control flow.
281{
282 IL_0012:
283 stloc:int64(var_1_18, ldfld:int64(int64::m_value, ldc.i4:int32[exp:int64&](0)))
284 stfld:string(MethodResponse::_uri, ldloc:MethodResponse(this), ldloc:IMethodCallMessage[exp:string](var_0_0E))
285}
286
287 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
288 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
289 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
290 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
291 --- End of inner exception stack trace ---
292 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
293 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
294*/;
295 }
296 set
297 {
299 }
300 }
301
302 // Token: 0x170003EA RID: 1002
303 // (get) Token: 0x06001E6D RID: 7789 RVA: 0x00042950 File Offset: 0x00040B50
304 // (set) Token: 0x06001E6E RID: 7790 RVA: 0x00042964 File Offset: 0x00040B64
306 {
307 get
308 {
309 return this.Uri;
310 }
311 set
312 {
314 }
315 }
316
317 // Token: 0x06001E6F RID: 7791 RVA: 0x00042978 File Offset: 0x00040B78
318 public object GetArg(int argNum)
319 {
320 if (this._args != null)
321 {
322 return;
323 }
324 }
325
326 // Token: 0x06001E70 RID: 7792 RVA: 0x00042990 File Offset: 0x00040B90
328 {
329 if (this._exception != null)
330 {
331 return;
332 }
333 string typeName = this._typeName;
334 info.AddValue("__TypeName", typeName);
335 string methodName = this._methodName;
336 info.AddValue("__MethodName", methodName);
337 Type[] methodSignature = this._methodSignature;
338 info.AddValue("__MethodSignature", methodSignature);
339 string uri = this._uri;
340 info.AddValue("__Uri", uri);
341 object returnValue = this._returnValue;
342 info.AddValue("__Return", returnValue);
343 object[] args = this._args;
344 info.AddValue("__OutArgs", args);
345 LogicalCallContext callContext = this._callContext;
346 info.AddValue("__CallContext", callContext);
348 if (internalProperties != null)
349 {
350 return;
351 }
352 }
353
354 // Token: 0x170003EB RID: 1003
355 // (get) Token: 0x06001E71 RID: 7793 RVA: 0x00042A78 File Offset: 0x00040C78
356 // (set) Token: 0x06001E72 RID: 7794 RVA: 0x00042A8C File Offset: 0x00040C8C
358 {
359 get
360 {
361 return this._targetIdentity;
362 }
363 set
364 {
366 }
367 }
368
369 // Token: 0x04000F3A RID: 3898
370 private string _methodName;
371
372 // Token: 0x04000F3B RID: 3899
373 private string _uri;
374
375 // Token: 0x04000F3C RID: 3900
376 private string _typeName;
377
378 // Token: 0x04000F3D RID: 3901
380
381 // Token: 0x04000F3E RID: 3902
382 private object _returnValue;
383
384 // Token: 0x04000F3F RID: 3903
386
387 // Token: 0x04000F40 RID: 3904
389
390 // Token: 0x04000F41 RID: 3905
392
393 // Token: 0x04000F42 RID: 3906
394 private object[] _args;
395
396 // Token: 0x04000F43 RID: 3907
397 private object[] _outArgs;
398
399 // Token: 0x04000F44 RID: 3908
401
402 // Token: 0x04000F45 RID: 3909
404
405 // Token: 0x04000F46 RID: 3910
407
408 // Token: 0x04000F47 RID: 3911
410
411 // Token: 0x04000F48 RID: 3912
413 }
414}
class f__AnonymousType0<< Count > j__TPar
MethodResponse(SerializationInfo info, StreamingContext context)
MethodResponse(IMethodCallMessage msg, CADMethodReturnMessage retmsg)
virtual void GetObjectData(SerializationInfo info, StreamingContext context)
MethodResponse(object returnValue, object[] outArgs, LogicalCallContext callCtx, IMethodCallMessage msg)
MethodResponse(Exception e, IMethodCallMessage msg)
void InitMethodProperty(string key, object value)
static MethodBase GetMethodBaseFromMethodMessage(IMethodMessage msg)
void AddValue(string name, object value, Type type)