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
ObjRef.cs
Go to the documentation of this file.
1using System;
6
8{
9 // Token: 0x02000342 RID: 834
10 [ComVisible(true)]
13 {
14 // Token: 0x06001BD4 RID: 7124 RVA: 0x0003BEF4 File Offset: 0x0003A0F4
15 public ObjRef()
16 {
17 this.UpdateChannelInfo();
18 }
19
20 // Token: 0x06001BD5 RID: 7125 RVA: 0x0003BF10 File Offset: 0x0003A110
21 internal ObjRef(string uri, IChannelInfo cinfo)
22 {
24 this.uri = uri;
25 }
26
27 // Token: 0x06001BD6 RID: 7126 RVA: 0x0003BF34 File Offset: 0x0003A134
29 {
30 string text = string.Copy(this.uri);
32 if (obj == null || obj != null)
33 {
34 }
35 throw new InvalidCastException();
36 }
37
38 // Token: 0x06001BD7 RID: 7127 RVA: 0x0003BF60 File Offset: 0x0003A160
39 internal byte[] SerializeType()
40 {
41 /*
42An exception occurred when decompiling this method (06001BD7)
43
44ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Byte[] System.Runtime.Remoting.ObjRef::SerializeType()
45
46 ---> System.Exception: Basic block has to end with unconditional control flow.
47{
48 IL_0000:
49 brtrue(IL_0000, logicnot:bool(ldfld:IRemotingTypeInfo[exp:bool](ObjRef::typeInfo, ldloc:ObjRef(this))))
50}
51
52 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
53 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
54 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
55 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
56 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
57 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
58 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
59 --- End of inner exception stack trace ---
60 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
61 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
62*/;
63 }
64
65 // Token: 0x06001BD8 RID: 7128 RVA: 0x0003BF74 File Offset: 0x0003A174
66 internal ObjRef(Type type, string url, object remoteChannelData)
67 {
68 this.uri = url;
69 if (remoteChannelData != null)
70 {
71 }
72 int num = this.flags;
73 }
74
75 // Token: 0x06001BD9 RID: 7129 RVA: 0x0003BF98 File Offset: 0x0003A198
77 {
78 SerializationInfoEnumerator enumerator = info.GetEnumerator();
79 bool flag = enumerator.MoveNext();
80 string name = enumerator.Name;
81 bool flag2 = name == "uri";
82 object value = enumerator.Value;
83 if (value != null)
84 {
86 return;
87 }
88 }
89
90 // Token: 0x17000334 RID: 820
91 // (get) Token: 0x06001BDA RID: 7130 RVA: 0x0003C098 File Offset: 0x0003A298
93 {
94 get
95 {
96 /*
97An exception occurred when decompiling this method (06001BDA)
98
99ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean System.Runtime.Remoting.ObjRef::get_IsReferenceToWellKnow()
100
101 ---> System.Exception: Basic block has to end with unconditional control flow.
102{
103 IL_0000:
104 stloc:int32(var_0_06, ldfld:int32(ObjRef::flags, ldloc:ObjRef(this)))
105 brtrue(IL_0000, ldc.i4:bool(1))
106}
107
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 1852
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 1878
111 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
112 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
113 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
114 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
115 --- End of inner exception stack trace ---
116 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
117 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
118*/;
119 }
120 }
121
122 // Token: 0x17000335 RID: 821
123 // (get) Token: 0x06001BDB RID: 7131 RVA: 0x0003C0B0 File Offset: 0x0003A2B0
125 {
126 [ReliabilityContract(Consistency.WillNotCorruptState, Cer.Success)]
127 get
128 {
129 return this.channel_info;
130 }
131 }
132
133 // Token: 0x17000336 RID: 822
134 // (get) Token: 0x06001BDC RID: 7132 RVA: 0x0003C0C4 File Offset: 0x0003A2C4
135 // (set) Token: 0x06001BDD RID: 7133 RVA: 0x0003C0D8 File Offset: 0x0003A2D8
136 public virtual IEnvoyInfo EnvoyInfo
137 {
138 get
139 {
140 return this.envoyInfo;
141 }
142 set
143 {
145 }
146 }
147
148 // Token: 0x17000337 RID: 823
149 // (get) Token: 0x06001BDE RID: 7134 RVA: 0x0003C0EC File Offset: 0x0003A2EC
150 // (set) Token: 0x06001BDF RID: 7135 RVA: 0x0003C100 File Offset: 0x0003A300
152 {
153 get
154 {
155 return this.typeInfo;
156 }
157 set
158 {
160 }
161 }
162
163 // Token: 0x17000338 RID: 824
164 // (get) Token: 0x06001BE0 RID: 7136 RVA: 0x0003C114 File Offset: 0x0003A314
165 // (set) Token: 0x06001BE1 RID: 7137 RVA: 0x0003C128 File Offset: 0x0003A328
166 public virtual string URI
167 {
168 get
169 {
170 return this.uri;
171 }
172 set
173 {
174 this.uri = value;
175 }
176 }
177
178 // Token: 0x06001BE2 RID: 7138 RVA: 0x0003C13C File Offset: 0x0003A33C
180 {
181 Type type = base.GetType();
182 string text = this.uri;
184 if (!true)
185 {
186 }
189 int num = this.flags;
190 }
191
192 // Token: 0x06001BE3 RID: 7139 RVA: 0x0003C17C File Offset: 0x0003A37C
193 public virtual object GetRealObject(StreamingContext context)
194 {
195 int num = this.flags;
196 if (!true)
197 {
198 }
199 return RemotingServices.Unmarshal(this);
200 }
201
202 // Token: 0x06001BE4 RID: 7140 RVA: 0x0003C19C File Offset: 0x0003A39C
203 internal void UpdateChannelInfo()
204 {
205 }
206
207 // Token: 0x17000339 RID: 825
208 // (get) Token: 0x06001BE5 RID: 7141 RVA: 0x0003C1AC File Offset: 0x0003A3AC
210 {
211 get
212 {
213 int num = 1;
214 Type serverType = this._serverType;
215 if (num == 0)
216 {
217 }
219 return this._serverType;
220 }
221 }
222
223 // Token: 0x06001BE6 RID: 7142 RVA: 0x0003C1DC File Offset: 0x0003A3DC
224 // Note: this type is marked as 'beforefieldinit'.
225 static ObjRef()
226 {
227 }
228
229 // Token: 0x04000E2A RID: 3626
231
232 // Token: 0x04000E2B RID: 3627
233 private string uri;
234
235 // Token: 0x04000E2C RID: 3628
237
238 // Token: 0x04000E2D RID: 3629
240
241 // Token: 0x04000E2E RID: 3630
242 private int flags;
243
244 // Token: 0x04000E2F RID: 3631
246
247 // Token: 0x04000E30 RID: 3632
248 private static int MarshalledObjectRef;
249
250 // Token: 0x04000E31 RID: 3633
251 private static int WellKnowObjectRef;
252 }
253}
class f__AnonymousType0<< Count > j__TPar
static object DeserializeObjectSafe(byte[] mem)
ObjRef(SerializationInfo info, StreamingContext context)
Definition ObjRef.cs:76
ObjRef DeserializeInTheCurrentDomain(int domainId, byte[] tInfo)
Definition ObjRef.cs:28
IRemotingTypeInfo typeInfo
Definition ObjRef.cs:236
virtual object GetRealObject(StreamingContext context)
Definition ObjRef.cs:193
ObjRef(Type type, string url, object remoteChannelData)
Definition ObjRef.cs:66
virtual void GetObjectData(SerializationInfo info, StreamingContext context)
Definition ObjRef.cs:179
ObjRef(string uri, IChannelInfo cinfo)
Definition ObjRef.cs:21
static object Unmarshal(ObjRef objectRef)
new Type GetType()
Definition Type.cs:287