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
JsonArrayContract.cs
Go to the documentation of this file.
1using System;
7
9{
10 // Token: 0x02000098 RID: 152
11 [Preserve]
13 {
14 // Token: 0x170000DC RID: 220
15 // (get) Token: 0x0600053C RID: 1340 RVA: 0x0000D894 File Offset: 0x0000BA94
16 // (set) Token: 0x0600053D RID: 1341 RVA: 0x0000D8A8 File Offset: 0x0000BAA8
18 {
20 get
21 {
23 }
25 private set
26 {
28 }
29 }
30
31 // Token: 0x170000DD RID: 221
32 // (get) Token: 0x0600053E RID: 1342 RVA: 0x0000D8BC File Offset: 0x0000BABC
33 // (set) Token: 0x0600053F RID: 1343 RVA: 0x0000D8D0 File Offset: 0x0000BAD0
35 {
37 get
38 {
40 }
42 private set
43 {
44 }
45 }
46
47 // Token: 0x170000DE RID: 222
48 // (get) Token: 0x06000540 RID: 1344 RVA: 0x0000D8E0 File Offset: 0x0000BAE0
49 // (set) Token: 0x06000541 RID: 1345 RVA: 0x0000D8F4 File Offset: 0x0000BAF4
50 internal bool IsArray
51 {
53 get
54 {
55 return this.<IsArray>k__BackingField;
56 }
58 private set
59 {
60 }
61 }
62
63 // Token: 0x170000DF RID: 223
64 // (get) Token: 0x06000542 RID: 1346 RVA: 0x0000D904 File Offset: 0x0000BB04
65 // (set) Token: 0x06000543 RID: 1347 RVA: 0x0000D918 File Offset: 0x0000BB18
66 internal bool ShouldCreateWrapper
67 {
69 get
70 {
72 }
74 private set
75 {
76 }
77 }
78
79 // Token: 0x170000E0 RID: 224
80 // (get) Token: 0x06000544 RID: 1348 RVA: 0x0000D928 File Offset: 0x0000BB28
81 // (set) Token: 0x06000545 RID: 1349 RVA: 0x0000D93C File Offset: 0x0000BB3C
82 internal bool CanDeserialize
83 {
85 get
86 {
88 }
90 private set
91 {
92 }
93 }
94
95 // Token: 0x170000E1 RID: 225
96 // (get) Token: 0x06000546 RID: 1350 RVA: 0x0000D94C File Offset: 0x0000BB4C
98 {
99 get
100 {
101 /*
102An exception occurred when decompiling this method (06000546)
103
104ICSharpCode.Decompiler.DecompilerException: Error decompiling Newtonsoft.Json.Serialization.ObjectConstructor`1<System.Object> Newtonsoft.Json.Serialization.JsonArrayContract::get_ParameterizedCreator()
105
106 ---> System.Exception: Basic block has to end with unconditional control flow.
107{
108 Block_0:
109 stloc:ReflectionDelegateFactory(var_1_0F, callgetter:ReflectionDelegateFactory(JsonTypeReflector::get_ReflectionDelegateFactory))
110 stloc:ConstructorInfo(var_2_16, ldfld:ConstructorInfo(JsonArrayContract::_parameterizedConstructor, ldloc:JsonArrayContract(this)))
111 stfld:class Newtonsoft.Json.Serialization.ObjectConstructor`1<object>(JsonArrayContract::_parameterizedCreator, ldloc:JsonArrayContract(this), ldloc:ReflectionDelegateFactory[exp:class Newtonsoft.Json.Serialization.ObjectConstructor`1<object>](var_1_0F))
112}
113
114 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
115 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
116 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
117 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
118 --- End of inner exception stack trace ---
119 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
120 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
121*/;
122 }
123 }
124
125 // Token: 0x170000E2 RID: 226
126 // (get) Token: 0x06000547 RID: 1351 RVA: 0x0000D978 File Offset: 0x0000BB78
127 // (set) Token: 0x06000548 RID: 1352 RVA: 0x0000D98C File Offset: 0x0000BB8C
129 {
130 get
131 {
132 return this._overrideCreator;
133 }
134 set
135 {
137 this.<CanDeserialize>k__BackingField = true;
138 }
139 }
140
141 // Token: 0x170000E3 RID: 227
142 // (get) Token: 0x06000549 RID: 1353 RVA: 0x0000D9A8 File Offset: 0x0000BBA8
143 // (set) Token: 0x0600054A RID: 1354 RVA: 0x0000D9BC File Offset: 0x0000BBBC
145 {
147 get
148 {
150 }
152 set
153 {
154 }
155 }
156
157 // Token: 0x170000E4 RID: 228
158 // (get) Token: 0x0600054B RID: 1355 RVA: 0x0000D9CC File Offset: 0x0000BBCC
160 {
161 get
162 {
163 return (!this.<HasParameterizedCreator>k__BackingField && this._parameterizedCreator == null) || true;
164 }
165 }
166
167 // Token: 0x0600054C RID: 1356 RVA: 0x0000D9EC File Offset: 0x0000BBEC
170 {
172 int num = 2;
174 bool isArray = createdType.IsArray;
175 this.<IsArray>k__BackingField = num != 0;
176 Type <UnderlyingType>k__BackingField = this.<UnderlyingType>k__BackingField;
177 if (num == 0)
178 {
179 }
181 int num2 = 1;
184 if (num2 == 0)
185 {
186 }
188 if (type == null || type != null)
189 {
190 bool flag = this.<IsArray>k__BackingField;
191 Type type2;
193 if (flag)
194 {
195 Type <UnderlyingType>k__BackingField2 = this.<UnderlyingType>k__BackingField;
196 }
197 return;
198 }
199 throw new ArrayTypeMismatchException();
200 }
201
202 // Token: 0x0600054D RID: 1357 RVA: 0x0000DC30 File Offset: 0x0000BE30
204 {
205 if (this._genericWrapperCreator == null)
206 {
208 if (type != null && type == null)
209 {
210 goto IL_0077;
211 }
212 Type type2;
214 Type type3;
219 if (type4 != null && type4 == null)
220 {
221 goto IL_0077;
222 }
224 Type type5;
225 if (type5 != null && type5 == null)
226 {
227 goto IL_0077;
228 }
231 }
232 if ((list == null || list != null) && list != null && list == null)
233 {
234 throw new InvalidCastException();
235 }
236 IL_0077:
237 throw new ArrayTypeMismatchException();
238 }
239
240 // Token: 0x0600054E RID: 1358 RVA: 0x0000DCC0 File Offset: 0x0000BEC0
242 {
243 if (this._genericTemporaryCollectionCreator == null)
244 {
246 {
247 }
249 while (type == null)
250 {
251 }
252 if (type != null && type == null)
253 {
254 throw new ArrayTypeMismatchException();
255 }
258 }
259 throw new InvalidCastException();
260 }
261
262 // Token: 0x04000251 RID: 593
264 private Type <CollectionItemType>k__BackingField;
265
266 // Token: 0x04000252 RID: 594
268 private bool <IsMultidimensionalArray>k__BackingField;
269
270 // Token: 0x04000253 RID: 595
272
273 // Token: 0x04000254 RID: 596
275
276 // Token: 0x04000255 RID: 597
278
279 // Token: 0x04000256 RID: 598
281
282 // Token: 0x04000257 RID: 599
284 private bool <IsArray>k__BackingField;
285
286 // Token: 0x04000258 RID: 600
288 private bool <ShouldCreateWrapper>k__BackingField;
289
290 // Token: 0x04000259 RID: 601
292 private bool <CanDeserialize>k__BackingField;
293
294 // Token: 0x0400025A RID: 602
296
297 // Token: 0x0400025B RID: 603
299
300 // Token: 0x0400025C RID: 604
302
303 // Token: 0x0400025D RID: 605
305 private bool <HasParameterizedCreator>k__BackingField;
306 }
307}
class f__AnonymousType0<< Count > j__TPar
bool< HasParameterizedCreator > k__BackingField
bool< IsMultidimensionalArray > k__BackingField
static ReflectionDelegateFactory ReflectionDelegateFactory
static bool InheritsGenericDefinition(Type type, Type genericClassDefinition)