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
RealProxy.cs
Go to the documentation of this file.
1using System;
7
9{
10 // Token: 0x0200035B RID: 859
11 [ComVisible(true)]
12 [StructLayout(0)]
13 public abstract class RealProxy
14 {
15 // Token: 0x06001C9A RID: 7322 RVA: 0x0003E3CC File Offset: 0x0003C5CC
16 protected RealProxy()
17 {
18 }
19
20 // Token: 0x06001C9B RID: 7323 RVA: 0x0003E3E0 File Offset: 0x0003C5E0
22 {
23 }
24
25 // Token: 0x06001C9C RID: 7324 RVA: 0x0003E3F0 File Offset: 0x0003C5F0
27 {
28 this._objectIdentity = identity;
29 }
30
31 // Token: 0x06001C9D RID: 7325 RVA: 0x0003E404 File Offset: 0x0003C604
33 {
35 base..ctor();
36 bool isMarshalByRef = classToProxy.IsMarshalByRef;
37 bool isInterface = classToProxy.IsInterface;
39 }
40
41 // Token: 0x06001C9E RID: 7326 RVA: 0x0003E434 File Offset: 0x0003C634
43 {
44 throw new NotSupportedException();
45 }
46
47 // Token: 0x06001C9F RID: 7327 RVA: 0x0003E448 File Offset: 0x0003C648
49 {
50 if (this._objTP != null)
51 {
52 throw new NotSupportedException();
53 }
55 Type type;
56 return type;
57 }
58
59 // Token: 0x06001CA0 RID: 7328 RVA: 0x0003E474 File Offset: 0x0003C674
61 {
62 RemotingServices.GetObjectData(this, info, context);
63 }
64
65 // Token: 0x17000350 RID: 848
66 // (get) Token: 0x06001CA1 RID: 7329 RVA: 0x0003E48C File Offset: 0x0003C68C
67 // (set) Token: 0x06001CA2 RID: 7330 RVA: 0x0003E4A0 File Offset: 0x0003C6A0
69 {
70 get
71 {
72 return this._objectIdentity;
73 }
74 set
75 {
77 }
78 }
79
80 // Token: 0x06001CA3 RID: 7331
81 public abstract IMessage Invoke(IMessage msg);
82
83 // Token: 0x06001CA4 RID: 7332 RVA: 0x0003E4B4 File Offset: 0x0003C6B4
84 internal static object PrivateInvoke(RealProxy rp, IMessage msg, [Out] Exception exc, [Out] object[] out_args)
85 {
86 if (rp != null)
87 {
88 }
91 long num = 0L;
92 object stubData = rp._stubData;
93 object stubData2 = rp._stubData;
94 IMessage message;
95 if (message != null && message == null)
96 {
97 throw new InvalidCastException();
98 }
99 Type type = rp.class_to_proxy;
100 long num2;
101 if (num != 0L)
102 {
103 num2 = 0L;
104 }
105 if (num2 == 0L)
106 {
107 if (rp == null)
108 {
109 throw new InvalidCastException();
110 }
112 if (message2 != null)
113 {
114 if (message2 == null)
115 {
116 throw new InvalidCastException();
117 }
118 }
119 else
120 {
121 if (message2 != null)
122 {
123 if (message2 == null)
124 {
125 throw new InvalidCastException();
126 }
127 if (num == 0L)
128 {
129 goto IL_0073;
130 }
131 }
132 long num3 = 0L;
133 if (num != 0L)
134 {
135 goto IL_0084;
136 }
137 IL_0073:
138 object stubData3 = rp._stubData;
139 long value = num3.m_value;
140 }
141 }
142 IL_0084:
145 if (callType != CallType.Sync)
146 {
147 object stubData4 = rp._stubData;
148 }
149 object[] array;
150 return array;
151 }
152
153 // Token: 0x06001CA5 RID: 7333 RVA: 0x0003E590 File Offset: 0x0003C790
154 internal virtual object InternalGetTransparentProxy(string className)
155 {
156 throw new NotSupportedException();
157 }
158
159 // Token: 0x06001CA6 RID: 7334 RVA: 0x0003E5A4 File Offset: 0x0003C7A4
160 public virtual object GetTransparentProxy()
161 {
162 /*
163An exception occurred when decompiling this method (06001CA6)
164
165ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Object System.Runtime.Remoting.Proxies.RealProxy::GetTransparentProxy()
166
167 ---> System.Exception: Basic block has to end with unconditional control flow.
168{
169 IL_000E:
170 stloc:Type(var_2_14, ldfld:Type(RealProxy::class_to_proxy, ldloc:RealProxy(this)))
171 stfld:object(RealProxy::_objTP, ldloc:RealProxy(this), ldloc:RealProxy[exp:object](this))
172}
173
174 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
175 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
176 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
177 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
178 --- End of inner exception stack trace ---
179 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
180 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
181*/;
182 }
183
184 // Token: 0x06001CA7 RID: 7335 RVA: 0x0003E5CC File Offset: 0x0003C7CC
186 {
187 this._server = s;
188 }
189
190 // Token: 0x06001CA8 RID: 7336 RVA: 0x0003E5E0 File Offset: 0x0003C7E0
191 internal void SetTargetDomain(int domainId)
192 {
194 }
195
196 // Token: 0x06001CA9 RID: 7337 RVA: 0x0003E5F4 File Offset: 0x0003C7F4
197 internal object GetAppDomainTarget()
198 {
199 /*
200An exception occurred when decompiling this method (06001CA9)
201
202ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Object System.Runtime.Remoting.Proxies.RealProxy::GetAppDomainTarget()
203
204 ---> System.Exception: Basic block has to end with unconditional control flow.
205{
206 IL_001E:
207 stloc:string(var_1_24, ldfld:string(RealProxy::_targetUri, ldloc:RealProxy(this)))
208 stloc:string(var_2_35, call:string(string::Concat, ldstr:string("Server for uri '"), ldloc:string(var_1_24), ldstr:string("' not found")))
209}
210
211 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
212 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
213 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
214 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
215 --- End of inner exception stack trace ---
216 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
217 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
218*/;
219 }
220
221 // Token: 0x06001CAA RID: 7338 RVA: 0x0003E638 File Offset: 0x0003C838
223 {
224 bool flag;
225 bool value = flag.m_value;
226 bool value2 = flag.m_value;
227 bool value3 = flag.m_value;
228 if (!flag || flag)
229 {
230 bool value4 = flag.m_value;
231 while (!flag)
232 {
233 }
234 if (value4)
235 {
236 if (!value4)
237 {
238 }
239 }
240 throw new InvalidCastException();
241 }
242 throw new ArrayTypeMismatchException();
243 }
244
245 // Token: 0x04000E7E RID: 3710
247
248 // Token: 0x04000E7F RID: 3711
250
251 // Token: 0x04000E80 RID: 3712
253
254 // Token: 0x04000E81 RID: 3713
255 private int _targetDomainId;
256
257 // Token: 0x04000E82 RID: 3714
258 internal string _targetUri;
259
260 // Token: 0x04000E83 RID: 3715
262
263 // Token: 0x04000E84 RID: 3716
264 private object _objTP;
265
266 // Token: 0x04000E85 RID: 3717
267 private object _stubData;
268 }
269}
class f__AnonymousType0<< Count > j__TPar
RealProxy(Type classToProxy, ClientIdentity identity)
Definition RealProxy.cs:26
static Type InternalGetProxyType(object transparentProxy)
Definition RealProxy.cs:42
static object PrivateInvoke(RealProxy rp, IMessage msg, [Out] Exception exc, [Out] object[] out_args)
Definition RealProxy.cs:84
static object[] ProcessResponse(IMethodReturnMessage mrm, MonoMethodMessage call)
Definition RealProxy.cs:222
virtual void GetObjectData(SerializationInfo info, StreamingContext context)
Definition RealProxy.cs:60
virtual object InternalGetTransparentProxy(string className)
Definition RealProxy.cs:154
RealProxy(Type classToProxy, IntPtr stub, object stubData)
Definition RealProxy.cs:32
void AttachServer(MarshalByRefObject s)
Definition RealProxy.cs:185
static void GetObjectData(object obj, SerializationInfo info, StreamingContext context)
static Thread CurrentThread
Definition Thread.cs:381
ExecutionContext GetMutableExecutionContext()
Definition Thread.cs:139
bool IsInterface
Definition Type.cs:1345