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
JsonDictionaryContract.cs
Go to the documentation of this file.
1using System;
7
9{
10 // Token: 0x020000A1 RID: 161
11 [Preserve]
13 {
14 // Token: 0x170000F6 RID: 246
15 // (get) Token: 0x06000588 RID: 1416 RVA: 0x0000E474 File Offset: 0x0000C674
16 // (set) Token: 0x06000589 RID: 1417 RVA: 0x0000E488 File Offset: 0x0000C688
17 [Obsolete("PropertyNameResolver is obsolete. Use DictionaryKeyResolver instead.")]
19 {
20 get
21 {
23 }
24 set
25 {
27 }
28 }
29
30 // Token: 0x170000F7 RID: 247
31 // (get) Token: 0x0600058A RID: 1418 RVA: 0x0000E49C File Offset: 0x0000C69C
32 // (set) Token: 0x0600058B RID: 1419 RVA: 0x0000E4B0 File Offset: 0x0000C6B0
46
47 // Token: 0x170000F8 RID: 248
48 // (get) Token: 0x0600058C RID: 1420 RVA: 0x0000E4C4 File Offset: 0x0000C6C4
49 // (set) Token: 0x0600058D RID: 1421 RVA: 0x0000E4D8 File Offset: 0x0000C6D8
51 {
53 get
54 {
56 }
58 private set
59 {
61 }
62 }
63
64 // Token: 0x170000F9 RID: 249
65 // (get) Token: 0x0600058E RID: 1422 RVA: 0x0000E4EC File Offset: 0x0000C6EC
66 // (set) Token: 0x0600058F RID: 1423 RVA: 0x0000E500 File Offset: 0x0000C700
68 {
70 get
71 {
73 }
75 private set
76 {
78 }
79 }
80
81 // Token: 0x170000FA RID: 250
82 // (get) Token: 0x06000590 RID: 1424 RVA: 0x0000E514 File Offset: 0x0000C714
83 // (set) Token: 0x06000591 RID: 1425 RVA: 0x0000E528 File Offset: 0x0000C728
85 {
87 get
88 {
89 return this.<KeyContract>k__BackingField;
90 }
92 set
93 {
95 }
96 }
97
98 // Token: 0x170000FB RID: 251
99 // (get) Token: 0x06000592 RID: 1426 RVA: 0x0000E53C File Offset: 0x0000C73C
100 // (set) Token: 0x06000593 RID: 1427 RVA: 0x0000E550 File Offset: 0x0000C750
102 {
104 get
105 {
107 }
109 private set
110 {
111 }
112 }
113
114 // Token: 0x170000FC RID: 252
115 // (get) Token: 0x06000594 RID: 1428 RVA: 0x0000E560 File Offset: 0x0000C760
117 {
118 get
119 {
120 /*
121An exception occurred when decompiling this method (06000594)
122
123ICSharpCode.Decompiler.DecompilerException: Error decompiling Newtonsoft.Json.Serialization.ObjectConstructor`1<System.Object> Newtonsoft.Json.Serialization.JsonDictionaryContract::get_ParameterizedCreator()
124
125 ---> System.Exception: Basic block has to end with unconditional control flow.
126{
127 Block_0:
128 stloc:ReflectionDelegateFactory(var_1_0F, callgetter:ReflectionDelegateFactory(JsonTypeReflector::get_ReflectionDelegateFactory))
129 stloc:ConstructorInfo(var_2_16, ldfld:ConstructorInfo(JsonDictionaryContract::_parameterizedConstructor, ldloc:JsonDictionaryContract(this)))
130 stfld:class Newtonsoft.Json.Serialization.ObjectConstructor`1<object>(JsonDictionaryContract::_parameterizedCreator, ldloc:JsonDictionaryContract(this), ldloc:ReflectionDelegateFactory[exp:class Newtonsoft.Json.Serialization.ObjectConstructor`1<object>](var_1_0F))
131}
132
133 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
134 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
135 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
136 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
137 --- End of inner exception stack trace ---
138 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
139 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
140*/;
141 }
142 }
143
144 // Token: 0x170000FD RID: 253
145 // (get) Token: 0x06000595 RID: 1429 RVA: 0x0000E58C File Offset: 0x0000C78C
146 // (set) Token: 0x06000596 RID: 1430 RVA: 0x0000E5A0 File Offset: 0x0000C7A0
148 {
149 get
150 {
151 return this._overrideCreator;
152 }
153 set
154 {
156 }
157 }
158
159 // Token: 0x170000FE RID: 254
160 // (get) Token: 0x06000597 RID: 1431 RVA: 0x0000E5B4 File Offset: 0x0000C7B4
161 // (set) Token: 0x06000598 RID: 1432 RVA: 0x0000E5C8 File Offset: 0x0000C7C8
163 {
165 get
166 {
168 }
170 set
171 {
172 }
173 }
174
175 // Token: 0x170000FF RID: 255
176 // (get) Token: 0x06000599 RID: 1433 RVA: 0x0000E5D8 File Offset: 0x0000C7D8
178 {
179 get
180 {
181 return (!this.<HasParameterizedCreator>k__BackingField && this._parameterizedCreator == null) || true;
182 }
183 }
184
185 // Token: 0x0600059A RID: 1434 RVA: 0x0000E5F8 File Offset: 0x0000C7F8
188 {
189 int num = 5;
192 if (genericCollectionDefinitionType == null)
193 {
194 }
196 {
197 }
200 Type type;
202 if ((underlyingType == null || underlyingType != null) && (underlyingType == null || underlyingType != null))
203 {
204 return;
205 }
206 throw new ArrayTypeMismatchException();
207 }
208
209 // Token: 0x0600059B RID: 1435 RVA: 0x0000E6B8 File Offset: 0x0000C8B8
211 {
212 if (this._genericWrapperCreator == null)
213 {
215 if ((type != null && type == null) || this.<DictionaryValueType>k__BackingField == null)
216 {
217 goto IL_004F;
218 }
219 Type type2;
222 if (genericCollectionDefinitionType != null && genericCollectionDefinitionType == null)
223 {
224 goto IL_004F;
225 }
228 }
229 if ((dictionary == null || dictionary != null) && dictionary != null && dictionary == null)
230 {
231 throw new InvalidCastException();
232 }
233 IL_004F:
234 throw new ArrayTypeMismatchException();
235 }
236
237 // Token: 0x0600059C RID: 1436 RVA: 0x0000E720 File Offset: 0x0000C920
249
250 // Token: 0x0400027F RID: 639
253
254 // Token: 0x04000280 RID: 640
256 private Type <DictionaryKeyType>k__BackingField;
257
258 // Token: 0x04000281 RID: 641
260 private Type <DictionaryValueType>k__BackingField;
261
262 // Token: 0x04000282 RID: 642
264 private JsonContract <KeyContract>k__BackingField;
265
266 // Token: 0x04000283 RID: 643
268
269 // Token: 0x04000284 RID: 644
271
272 // Token: 0x04000285 RID: 645
274
275 // Token: 0x04000286 RID: 646
277
278 // Token: 0x04000287 RID: 647
280 private bool <ShouldCreateWrapper>k__BackingField;
281
282 // Token: 0x04000288 RID: 648
284
285 // Token: 0x04000289 RID: 649
287
288 // Token: 0x0400028A RID: 650
290
291 // Token: 0x0400028B RID: 651
293 private bool <HasParameterizedCreator>k__BackingField;
294 }
295}
class f__AnonymousType0<< Count > j__TPar
Func< string, string >< DictionaryKeyResolver > k__BackingField
static ReflectionDelegateFactory ReflectionDelegateFactory
static bool IsGenericDefinition(Type type, Type genericInterfaceDefinition)