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
RemotingServices.cs
Go to the documentation of this file.
1using System;
13using Cpp2IlInjected;
14
16{
17 // Token: 0x02000349 RID: 841
18 [ComVisible(true)]
19 public static class RemotingServices
20 {
21 // Token: 0x06001C1E RID: 7198 RVA: 0x0003D1E0 File Offset: 0x0003B3E0
23 {
25 Type type;
27 Type type2;
28 MethodInfo method = type2.GetMethod("FieldSetter", BindingFlags.Instance | BindingFlags.NonPublic);
29 Type type3;
30 MethodInfo method2 = type3.GetMethod("FieldGetter", BindingFlags.Instance | BindingFlags.NonPublic);
31 }
32
33 // Token: 0x06001C1F RID: 7199 RVA: 0x0003D220 File Offset: 0x0003B420
34 internal static object InternalExecute(MethodBase method, object obj, object[] parameters, [Out] object[] out_args)
35 {
36 throw new NotSupportedException();
37 }
38
39 // Token: 0x06001C20 RID: 7200 RVA: 0x0003D234 File Offset: 0x0003B434
40 internal static MethodBase GetVirtualMethod(Type type, MethodBase method)
41 {
42 throw new NotSupportedException();
43 }
44
45 // Token: 0x06001C21 RID: 7201 RVA: 0x0000207A File Offset: 0x0000027A
46 public static bool IsTransparentProxy(object proxy)
47 {
48 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
49 }
50
51 // Token: 0x06001C22 RID: 7202 RVA: 0x0003D248 File Offset: 0x0003B448
56
57 // Token: 0x06001C23 RID: 7203 RVA: 0x0003D2B8 File Offset: 0x0003B4B8
58 [ComVisible(true)]
59 public static object Connect(Type classToProxy, string url)
60 {
61 if (!true)
62 {
63 }
64 object obj;
65 return obj;
66 }
67
68 // Token: 0x06001C24 RID: 7204 RVA: 0x0003D2CC File Offset: 0x0003B4CC
69 [ComVisible(true)]
70 public static object Connect(Type classToProxy, string url, object data)
71 {
72 if (!true)
73 {
74 }
75 object obj;
76 return obj;
77 }
78
79 // Token: 0x06001C25 RID: 7205 RVA: 0x0003D2E0 File Offset: 0x0003B4E0
80 public static Type GetServerTypeForUri(string URI)
81 {
82 for (;;)
83 {
84 if (!true)
85 {
86 }
87 Identity identity;
88 if (identity != null)
89 {
90 return;
91 }
92 }
93 }
94
95 // Token: 0x06001C26 RID: 7206 RVA: 0x0003D2F4 File Offset: 0x0003B4F4
96 public static object Unmarshal(ObjRef objectRef)
97 {
98 if (!true)
99 {
100 }
101 object obj;
102 return obj;
103 }
104
105 // Token: 0x06001C27 RID: 7207 RVA: 0x0003D308 File Offset: 0x0003B508
106 public static object Unmarshal(ObjRef objectRef, bool fRefine)
107 {
108 int num = 1;
109 if (num == 0)
110 {
111 }
112 if (num == 0)
113 {
114 }
115 if (num == 0)
116 {
117 }
118 if (num == 0)
119 {
120 }
121 object obj;
122 return obj;
123 }
124
125 // Token: 0x06001C28 RID: 7208 RVA: 0x0000207A File Offset: 0x0000027A
127 {
128 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
129 }
130
131 // Token: 0x06001C29 RID: 7209 RVA: 0x0000207A File Offset: 0x0000027A
133 {
134 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
135 }
136
137 // Token: 0x06001C2A RID: 7210 RVA: 0x0003D348 File Offset: 0x0003B548
138 private static string NewUri()
139 {
140 if (!true)
141 {
142 }
143 return 0;
144 }
145
146 // Token: 0x06001C2B RID: 7211 RVA: 0x0000207A File Offset: 0x0000027A
147 [ReliabilityContract(Consistency.WillNotCorruptState, Cer.Success)]
148 public static RealProxy GetRealProxy(object proxy)
149 {
150 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
151 }
152
153 // Token: 0x06001C2C RID: 7212 RVA: 0x0003D424 File Offset: 0x0003B624
155 {
156 bool flag;
157 bool value = flag.m_value;
158 bool value2 = flag.m_value;
159 if (!flag)
160 {
161 throw new InvalidCastException();
162 }
163 MethodBase methodBase;
164 return methodBase;
165 }
166
167 // Token: 0x06001C2D RID: 7213 RVA: 0x0003D44C File Offset: 0x0003B64C
168 internal static MethodBase GetMethodBaseFromName(Type type, string methodName, Type[] signature)
169 {
170 if (!true)
171 {
172 }
173 MethodBase methodBase;
174 return methodBase;
175 }
176
177 // Token: 0x06001C2E RID: 7214 RVA: 0x0003D478 File Offset: 0x0003B678
178 private static MethodBase FindInterfaceMethod(Type type, string methodName, Type[] signature)
179 {
180 int num = 1;
181 if (methodName != null)
182 {
183 }
184 if (num == 0)
185 {
186 return;
187 }
188 }
189
190 // Token: 0x06001C2F RID: 7215 RVA: 0x0003D494 File Offset: 0x0003B694
191 public static void GetObjectData(object obj, SerializationInfo info, StreamingContext context)
192 {
193 /*
194An exception occurred when decompiling this method (06001C2F)
195
196ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void System.Runtime.Remoting.RemotingServices::GetObjectData(System.Object,System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)
197
198 ---> System.Exception: Basic block has to end with unconditional control flow.
199{
200 IL_0000:
201 brtrue(IL_0000, ldloc:object[exp:bool](obj))
202}
203
204 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
205 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
206 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
207 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
208 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
209 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
210 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
211 --- End of inner exception stack trace ---
212 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
213 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
214*/;
215 }
216
217 // Token: 0x06001C30 RID: 7216 RVA: 0x0003D4A4 File Offset: 0x0003B6A4
218 public static bool IsOneWay(MethodBase method)
219 {
220 /*
221An exception occurred when decompiling this method (06001C30)
222
223ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean System.Runtime.Remoting.RemotingServices::IsOneWay(System.Reflection.MethodBase)
224
225 ---> System.Exception: Basic block has to end with unconditional control flow.
226{
227 IL_0000:
228 brtrue(IL_0000, ldc.i4:bool(1))
229}
230
231 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
232 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
233 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
234 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
235 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
236 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
237 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
238 --- End of inner exception stack trace ---
239 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
240 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
241*/;
242 }
243
244 // Token: 0x06001C31 RID: 7217 RVA: 0x0003D4B4 File Offset: 0x0003B6B4
246 {
247 if (entry != null)
248 {
249 }
250 object obj;
251 return obj;
252 }
253
254 // Token: 0x06001C32 RID: 7218 RVA: 0x0003D4C8 File Offset: 0x0003B6C8
255 internal static object CreateClientProxy(Type objectType, string url, object[] activationAttributes)
256 {
257 /*
258An exception occurred when decompiling this method (06001C32)
259
260ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Object System.Runtime.Remoting.RemotingServices::CreateClientProxy(System.Type,System.String,System.Object[])
261
262 ---> System.Exception: Basic block has to end with unconditional control flow.
263{
264 Block_0:
265 stloc:string(var_2_0B, call:string(string::Concat, ldloc:string(var_1), ldstr:string("RemoteActivationService.rem")))
266}
267
268 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
269 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
270 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
271 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
272 --- End of inner exception stack trace ---
273 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
274 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
275*/;
276 }
277
278 // Token: 0x06001C33 RID: 7219 RVA: 0x0003D4E0 File Offset: 0x0003B6E0
279 internal static object CreateClientProxy(WellKnownClientTypeEntry entry)
280 {
281 if (!true)
282 {
283 }
284 object obj;
285 return obj;
286 }
287
288 // Token: 0x06001C34 RID: 7220 RVA: 0x0003D4F4 File Offset: 0x0003B6F4
289 internal static object CreateClientProxyForContextBound(Type type, object[] activationAttributes)
290 {
291 int num = 1;
292 Type type2;
293 if (Attribute.GetCustomAttribute(type2, type2, num != 0) != null)
294 {
295 }
296 throw new InvalidCastException();
297 }
298
299 // Token: 0x06001C35 RID: 7221 RVA: 0x0003D514 File Offset: 0x0003B714
300 internal static Identity GetIdentityForUri(string uri)
301 {
302 if (!true)
303 {
304 }
305 if (false)
306 {
307 throw new OutOfMemoryException();
308 }
309 string text;
310 if (text != null)
311 {
312 throw new InvalidCastException();
313 }
314 if (!false)
315 {
316 }
317 throw new OutOfMemoryException();
318 }
319
320 // Token: 0x06001C36 RID: 7222 RVA: 0x0003D544 File Offset: 0x0003B744
321 private static string RemoveAppNameFromUri(string uri)
322 {
323 if (!true)
324 {
325 }
326 if (!true)
327 {
328 }
329 if (uri != null)
330 {
331 string text = "/" + uri + "/";
332 bool flag = text.StartsWith(text);
333 int stringLength = text._stringLength;
334 string text2;
335 return text2;
336 }
337 }
338
339 // Token: 0x06001C37 RID: 7223 RVA: 0x0003D580 File Offset: 0x0003B780
341 {
343 if (messageSink != null)
344 {
345 }
346 if (!false)
347 {
349 while (marshalByRefObject != null)
350 {
351 }
352 }
353 throw new OutOfMemoryException();
354 }
355
356 // Token: 0x06001C38 RID: 7224 RVA: 0x0003D5B4 File Offset: 0x0003B7B4
357 private static IMessageSink GetClientChannelSinkChain(string url, object channelData, [Out] string objectUri)
358 {
359 if (!true)
360 {
361 }
363 if (messageSink != null)
364 {
365 return messageSink;
366 }
367 return "Cannot create channel sink to connect to the remote object. An appropriate channel has probably not been registered.";
368 }
369
370 // Token: 0x06001C39 RID: 7225 RVA: 0x0003D5DC File Offset: 0x0003B7DC
372 {
373 /*
374An exception occurred when decompiling this method (06001C39)
375
376ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Runtime.Remoting.ClientActivatedIdentity System.Runtime.Remoting.RemotingServices::CreateContextBoundObjectIdentity(System.Type)
377
378 ---> System.Exception: Basic block has to end with unconditional control flow.
379{
380 IL_0003:
381 brtrue(IL_0000, ldc.i4:bool(1))
382}
383
384 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
385 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
386 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
387 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
388 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
389 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
390 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
391 --- End of inner exception stack trace ---
392 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
393 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
394*/;
395 }
396
397 // Token: 0x06001C3A RID: 7226 RVA: 0x0003D5F0 File Offset: 0x0003B7F0
399 {
400 if (!true)
401 {
402 }
404 if (!true)
405 {
406 }
407 throw new InvalidCastException();
408 }
409
410 // Token: 0x06001C3B RID: 7227 RVA: 0x0003D610 File Offset: 0x0003B810
412 {
413 /*
414An exception occurred when decompiling this method (06001C3B)
415
416ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Runtime.Remoting.ServerIdentity System.Runtime.Remoting.RemotingServices::CreateWellKnownServerIdentity(System.Type,System.String,System.Runtime.Remoting.WellKnownObjectMode)
417
418 ---> System.Exception: Basic block has to end with unconditional control flow.
419{
420 IL_0003:
421 stloc:Context(var_1_0A, callgetter:Context(Context::get_DefaultContext))
422}
423
424 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
425 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
426 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
427 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
428 --- End of inner exception stack trace ---
429 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
430 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
431*/;
432 }
433
434 // Token: 0x06001C3C RID: 7228 RVA: 0x0003D628 File Offset: 0x0003B828
435 private static void RegisterServerIdentity(ServerIdentity identity)
436 {
437 if (!true)
438 {
439 }
440 if (!true)
441 {
442 }
443 string objectUri = identity._objectUri;
444 if (!true)
445 {
446 }
447 string objectUri2 = identity._objectUri;
448 long num = 0L;
449 if (true)
450 {
451 }
452 if (num == 0L)
453 {
454 return;
455 }
456 throw new OutOfMemoryException();
457 }
458
459 // Token: 0x06001C3D RID: 7229 RVA: 0x0003D678 File Offset: 0x0003B878
460 internal static object GetProxyForRemoteObject(ObjRef objref, Type classToProxy)
461 {
462 Identity identity;
463 if (identity != null)
464 {
465 }
466 object obj;
467 return obj;
468 }
469
470 // Token: 0x06001C3E RID: 7230 RVA: 0x0003D68C File Offset: 0x0003B88C
471 internal static object GetRemoteObject(ObjRef objRef, Type proxyType)
472 {
473 /*
474An exception occurred when decompiling this method (06001C3E)
475
476ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Object System.Runtime.Remoting.RemotingServices::GetRemoteObject(System.Runtime.Remoting.ObjRef,System.Type)
477
478 ---> System.Exception: Basic block has to end with unconditional control flow.
479{
480 IL_0000:
481 brtrue(IL_0000, ldc.i4:bool(1))
482}
483
484 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
485 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
486 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
487 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
488 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
489 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
490 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
491 --- End of inner exception stack trace ---
492 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
493 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
494*/;
495 }
496
497 // Token: 0x06001C3F RID: 7231 RVA: 0x0003D69C File Offset: 0x0003B89C
498 internal static byte[] SerializeCallData(object obj)
499 {
501 if (!false)
502 {
503 }
504 throw new OutOfMemoryException();
505 }
506
507 // Token: 0x06001C40 RID: 7232 RVA: 0x0003D6E4 File Offset: 0x0003B8E4
508 internal static object DeserializeCallData(byte[] array)
509 {
510 long num = 0L;
511 int num2 = 3;
512 object obj;
514 if (num == 0L)
515 {
516 if (num2 == 0)
517 {
518 if (obj != null)
519 {
520 return obj;
521 }
522 }
523 if (num != 0L)
524 {
525 }
527 }
528 throw new OutOfMemoryException();
529 }
530
531 // Token: 0x06001C41 RID: 7233 RVA: 0x0003D740 File Offset: 0x0003B940
532 internal static byte[] SerializeExceptionData(Exception ex)
533 {
534 if (!true)
535 {
536 }
537 if (!true)
538 {
539 }
540 long num = 0L;
541 if (true)
542 {
543 }
544 if (num == 0L)
545 {
546 }
547 throw new OutOfMemoryException();
548 }
549
550 // Token: 0x06001C42 RID: 7234 RVA: 0x0003D76C File Offset: 0x0003B96C
551 private static void RegisterInternalChannels()
552 {
553 if (!true)
554 {
555 }
557 }
558
559 // Token: 0x06001C43 RID: 7235 RVA: 0x0003D784 File Offset: 0x0003B984
560 internal static void DisposeIdentity(Identity ident)
561 {
562 if (!true)
563 {
564 }
565 if (ident._disposed)
566 {
567 return;
568 }
569 string objectUri = ident._objectUri;
570 int num = 1;
571 long num2 = 0L;
572 ident._disposed = num != 0;
573 if (num != 0)
574 {
575 }
576 if (num2 == 0L)
577 {
578 return;
579 }
580 throw new OutOfMemoryException();
581 }
582
583 // Token: 0x06001C44 RID: 7236 RVA: 0x0003D7DC File Offset: 0x0003B9DC
585 {
586 if (!true)
587 {
588 }
589 throw new InvalidCastException();
590 }
591
592 // Token: 0x06001C45 RID: 7237 RVA: 0x0003D820 File Offset: 0x0003BA20
594 {
595 if (msg == null)
596 {
597 return;
598 }
599 if (msg == null)
600 {
601 return;
602 }
603 if (msg != null && msg != null)
604 {
605 return;
606 }
607 throw new InvalidCastException();
608 }
609
610 // Token: 0x06001C46 RID: 7238 RVA: 0x0003D84C File Offset: 0x0003BA4C
611 internal static bool UpdateOutArgObject(ParameterInfo pi, object local, object remote)
612 {
613 if (pi != null)
614 {
615 }
616 if (pi != null)
617 {
618 }
619 if (local != null)
620 {
621 }
622 throw new InvalidCastException();
623 }
624
625 // Token: 0x06001C47 RID: 7239 RVA: 0x0003D874 File Offset: 0x0003BA74
626 private static string GetNormalizedUri(string uri)
627 {
628 string text;
629 return text;
630 }
631
632 // Token: 0x04000E53 RID: 3667
633 private static Hashtable uri_hash;
634
635 // Token: 0x04000E54 RID: 3668
637
638 // Token: 0x04000E55 RID: 3669
640
641 // Token: 0x04000E56 RID: 3670
642 private static string app_id;
643
644 // Token: 0x04000E57 RID: 3671
645 private static readonly object app_id_lock;
646
647 // Token: 0x04000E58 RID: 3672
648 private static int next_id;
649
650 // Token: 0x04000E59 RID: 3673
652
653 // Token: 0x04000E5A RID: 3674
655
656 // Token: 0x0200034A RID: 842
658 private class CACD
659 {
660 // Token: 0x06001C48 RID: 7240 RVA: 0x0003D884 File Offset: 0x0003BA84
661 public CACD()
662 {
663 }
664
665 // Token: 0x04000E5B RID: 3675
666 public object d;
667
668 // Token: 0x04000E5C RID: 3676
669 public object c;
670 }
671 }
672}
class f__AnonymousType0<< Count > j__TPar
static Attribute GetCustomAttribute(MemberInfo element, Type attributeType, bool inherit)
Definition Attribute.cs:129
static IMessageSink GetClientChannelSinkChain(string url, object channelData, [Out] string objectUri)
static byte[] SerializeCallData(object obj)
static object CreateClientProxyForContextBound(Type type, object[] activationAttributes)
static bool UpdateOutArgObject(ParameterInfo pi, object local, object remote)
static ObjRef Marshal(MarshalByRefObject Obj, string ObjURI, Type RequestedType)
static readonly MethodInfo FieldGetterMethod
static bool IsTransparentProxy(object proxy)
static Identity GetIdentityForUri(string uri)
static object InternalExecute(MethodBase method, object obj, object[] parameters, [Out] object[] out_args)
static object DeserializeCallData(byte[] array)
static ServerIdentity CreateWellKnownServerIdentity(Type objectType, string objectUri, WellKnownObjectMode mode)
static ClientIdentity GetOrCreateClientIdentity(ObjRef objRef, Type proxyType, [Out] object clientProxy)
static MethodBase GetMethodBaseFromMethodMessage(IMethodMessage msg)
static Identity GetMessageTargetIdentity(IMessage msg)
static void GetObjectData(object obj, SerializationInfo info, StreamingContext context)
static IMethodReturnMessage InternalExecuteMessage(MarshalByRefObject target, IMethodCallMessage reqMsg)
static object Unmarshal(ObjRef objectRef, bool fRefine)
static object CreateClientProxy(ActivatedClientTypeEntry entry, object[] activationAttributes)
static ClientActivatedIdentity CreateContextBoundObjectIdentity(Type objectType)
static object Unmarshal(ObjRef objectRef)
static object Connect(Type classToProxy, string url, object data)
static object GetProxyForRemoteObject(ObjRef objref, Type classToProxy)
static MethodBase GetVirtualMethod(Type type, MethodBase method)
static void RegisterServerIdentity(ServerIdentity identity)
static void DisposeIdentity(Identity ident)
static MethodBase GetMethodBaseFromName(Type type, string methodName, Type[] signature)
static MethodBase FindInterfaceMethod(Type type, string methodName, Type[] signature)
static readonly MethodInfo FieldSetterMethod
static RealProxy GetRealProxy(object proxy)
static void SetMessageTargetIdentity(IMessage msg, Identity ident)
static ObjRef Marshal(MarshalByRefObject Obj)
static string RemoveAppNameFromUri(string uri)
static object CreateClientProxy(WellKnownClientTypeEntry entry)
static object GetRemoteObject(ObjRef objRef, Type proxyType)
static object CreateClientProxy(Type objectType, string url, object[] activationAttributes)
static bool IsOneWay(MethodBase method)
static object Connect(Type classToProxy, string url)
static byte[] SerializeExceptionData(Exception ex)
static ClientActivatedIdentity CreateClientActivatedServerIdentity(MarshalByRefObject realObject, Type objectType, string objectUri)
static void Exit(object obj)
Definition Monitor.cs:47
ExecutionContext.Reader GetExecutionContextReader()
Definition Thread.cs:82
static Thread CurrentThread
Definition Thread.cs:381
ExecutionContext GetMutableExecutionContext()
Definition Thread.cs:139