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
JsonConvert.cs
Go to the documentation of this file.
1using System;
3using System.IO;
5using System.Xml;
10
11namespace Newtonsoft.Json
12{
13 // Token: 0x02000033 RID: 51
14 [Preserve]
15 public static class JsonConvert
16 {
17 // Token: 0x17000064 RID: 100
18 // (get) Token: 0x060001A1 RID: 417 RVA: 0x000066A0 File Offset: 0x000048A0
19 // (set) Token: 0x060001A2 RID: 418 RVA: 0x000066B4 File Offset: 0x000048B4
21 {
23 get
24 {
25 if (!true)
26 {
27 }
28 return 1;
29 }
31 set
32 {
33 if (!true)
34 {
35 }
36 }
37 }
38
39 // Token: 0x060001A3 RID: 419 RVA: 0x000066C4 File Offset: 0x000048C4
40 static JsonConvert()
41 {
42 if (!true)
43 {
44 }
45 }
46
47 // Token: 0x060001A4 RID: 420 RVA: 0x000066D4 File Offset: 0x000048D4
49 {
50 /*
51An exception occurred when decompiling this method (060001A4)
52
53ICSharpCode.Decompiler.DecompilerException: Error decompiling Newtonsoft.Json.JsonSerializerSettings Newtonsoft.Json.JsonConvert::GetDefaultSettings()
54
55 ---> System.Exception: Basic block has to end with unconditional control flow.
56{
57 IL_0000:
58 brtrue(IL_0000, ldc.i4:bool(1))
59}
60
61 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
62 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
63 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
64 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
65 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
66 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
67 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
68 --- End of inner exception stack trace ---
69 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
70 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
71*/;
72 }
73
74 // Token: 0x060001A5 RID: 421 RVA: 0x000066E4 File Offset: 0x000048E4
75 public static string ToString(DateTime value)
76 {
77 if (!true)
78 {
79 }
80 string text;
81 return text;
82 }
83
84 // Token: 0x060001A6 RID: 422 RVA: 0x000066F8 File Offset: 0x000048F8
97
98 // Token: 0x060001A7 RID: 423 RVA: 0x00006744 File Offset: 0x00004944
99 public static string ToString(DateTimeOffset value)
100 {
101 if (!true)
102 {
103 }
104 string text;
105 return text;
106 }
107
108 // Token: 0x060001A8 RID: 424 RVA: 0x00006758 File Offset: 0x00004958
118
119 // Token: 0x060001A9 RID: 425 RVA: 0x000067A0 File Offset: 0x000049A0
120 public static string ToString(bool value)
121 {
122 if (!true)
123 {
124 }
125 return 1;
126 }
127
128 // Token: 0x060001AA RID: 426 RVA: 0x000067B4 File Offset: 0x000049B4
129 public static string ToString(char value)
130 {
131 if (!true)
132 {
133 }
134 string text;
135 return JsonConvert.ToString(text);
136 }
137
138 // Token: 0x060001AB RID: 427 RVA: 0x000067CC File Offset: 0x000049CC
139 public static string ToString(Enum value)
140 {
141 string text;
142 return text;
143 }
144
145 // Token: 0x060001AC RID: 428 RVA: 0x000067DC File Offset: 0x000049DC
146 public static string ToString(int value)
147 {
148 if (!true)
149 {
150 }
152 string text;
153 return text;
154 }
155
156 // Token: 0x060001AD RID: 429 RVA: 0x000067F8 File Offset: 0x000049F8
157 public static string ToString(short value)
158 {
159 if (!true)
160 {
161 }
163 string text;
164 return text;
165 }
166
167 // Token: 0x060001AE RID: 430 RVA: 0x00006814 File Offset: 0x00004A14
168 [CLSCompliant(false)]
169 public static string ToString(ushort value)
170 {
171 if (!true)
172 {
173 }
175 string text;
176 return text;
177 }
178
179 // Token: 0x060001AF RID: 431 RVA: 0x00006830 File Offset: 0x00004A30
180 [CLSCompliant(false)]
181 public static string ToString(uint value)
182 {
183 if (!true)
184 {
185 }
187 string text;
188 return text;
189 }
190
191 // Token: 0x060001B0 RID: 432 RVA: 0x0000684C File Offset: 0x00004A4C
192 public static string ToString(long value)
193 {
194 if (!true)
195 {
196 }
198 string text;
199 return text;
200 }
201
202 // Token: 0x060001B1 RID: 433 RVA: 0x00006868 File Offset: 0x00004A68
203 [CLSCompliant(false)]
204 public static string ToString(ulong value)
205 {
206 if (!true)
207 {
208 }
210 string text;
211 return text;
212 }
213
214 // Token: 0x060001B2 RID: 434 RVA: 0x00006884 File Offset: 0x00004A84
215 public static string ToString(float value)
216 {
217 if (!true)
218 {
219 }
221 string text;
222 return JsonConvert.EnsureDecimalPlace((double)value, text);
223 }
224
225 // Token: 0x060001B3 RID: 435 RVA: 0x000068A4 File Offset: 0x00004AA4
226 internal static string ToString(float value, FloatFormatHandling floatFormatHandling, char quoteChar, bool nullable)
227 {
228 if (!true)
229 {
230 }
232 string text2;
233 string text = JsonConvert.EnsureDecimalPlace((double)value, text2);
234 string text3;
235 return text3;
236 }
237
238 // Token: 0x060001B4 RID: 436 RVA: 0x000068C8 File Offset: 0x00004AC8
239 private static string EnsureFloatFormat(double value, string text, FloatFormatHandling floatFormatHandling, char quoteChar, bool nullable)
240 {
241 if (!true)
242 {
243 }
244 if (!true)
245 {
246 }
247 string text2;
248 return text2;
249 }
250
251 // Token: 0x060001B5 RID: 437 RVA: 0x000068E4 File Offset: 0x00004AE4
252 public static string ToString(double value)
253 {
254 if (!true)
255 {
256 }
258 string text;
260 }
261
262 // Token: 0x060001B6 RID: 438 RVA: 0x00006904 File Offset: 0x00004B04
263 internal static string ToString(double value, FloatFormatHandling floatFormatHandling, char quoteChar, bool nullable)
264 {
265 if (!true)
266 {
267 }
269 string text2;
270 string text = JsonConvert.EnsureDecimalPlace(value, text2);
271 string text3;
272 return text3;
273 }
274
275 // Token: 0x060001B7 RID: 439 RVA: 0x00006928 File Offset: 0x00004B28
276 private static string EnsureDecimalPlace(double value, string text)
277 {
278 if (!true)
279 {
280 }
281 if (!true)
282 {
283 }
284 string text2;
285 return text2;
286 }
287
288 // Token: 0x060001B8 RID: 440 RVA: 0x0000693C File Offset: 0x00004B3C
289 private static string EnsureDecimalPlace(string text)
290 {
291 string text2;
292 return text2;
293 }
294
295 // Token: 0x060001B9 RID: 441 RVA: 0x0000694C File Offset: 0x00004B4C
296 public static string ToString(byte value)
297 {
298 if (!true)
299 {
300 }
302 string text;
303 return text;
304 }
305
306 // Token: 0x060001BA RID: 442 RVA: 0x00006968 File Offset: 0x00004B68
307 [CLSCompliant(false)]
308 public static string ToString(sbyte value)
309 {
310 if (!true)
311 {
312 }
314 string text;
315 return text;
316 }
317
318 // Token: 0x060001BB RID: 443 RVA: 0x00006984 File Offset: 0x00004B84
319 public static string ToString(decimal value)
320 {
321 if (!true)
322 {
323 }
325 string text;
327 }
328
329 // Token: 0x060001BC RID: 444 RVA: 0x000069A4 File Offset: 0x00004BA4
330 public static string ToString(Guid value)
331 {
332 if (!true)
333 {
334 }
335 string text;
336 return text;
337 }
338
339 // Token: 0x060001BD RID: 445 RVA: 0x000069B8 File Offset: 0x00004BB8
340 internal static string ToString(Guid value, char quoteChar)
341 {
342 if (!true)
343 {
344 }
347 string text;
348 string text2;
349 return text + text2 + text;
350 }
351
352 // Token: 0x060001BE RID: 446 RVA: 0x000069E4 File Offset: 0x00004BE4
353 public static string ToString(TimeSpan value)
354 {
355 if (!true)
356 {
357 }
358 string text;
359 return text;
360 }
361
362 // Token: 0x060001BF RID: 447 RVA: 0x000069F8 File Offset: 0x00004BF8
363 internal static string ToString(TimeSpan value, char quoteChar)
364 {
365 string text;
366 return text;
367 }
368
369 // Token: 0x060001C0 RID: 448 RVA: 0x00006A08 File Offset: 0x00004C08
370 public static string ToString(Uri value)
371 {
372 if (!true)
373 {
374 }
375 string text;
376 return text;
377 }
378
379 // Token: 0x060001C1 RID: 449 RVA: 0x00006A1C File Offset: 0x00004C1C
380 internal static string ToString(Uri value, char quoteChar)
381 {
382 string text;
383 return text;
384 }
385
386 // Token: 0x060001C2 RID: 450 RVA: 0x00006A2C File Offset: 0x00004C2C
387 public static string ToString(string value)
388 {
389 if (!true)
390 {
391 }
392 string text;
393 return text;
394 }
395
396 // Token: 0x060001C3 RID: 451 RVA: 0x00006A40 File Offset: 0x00004C40
397 public static string ToString(string value, char delimiter)
398 {
399 if (!true)
400 {
401 }
402 string text;
403 return text;
404 }
405
406 // Token: 0x060001C4 RID: 452 RVA: 0x00006A54 File Offset: 0x00004C54
407 public static string ToString(string value, char delimiter, StringEscapeHandling stringEscapeHandling)
408 {
409 string text;
410 return text;
411 }
412
413 // Token: 0x060001C5 RID: 453 RVA: 0x00006A64 File Offset: 0x00004C64
414 public static string ToString(object value)
415 {
416 Type type;
418 return JsonConvert.ToString('\0');
419 }
420
421 // Token: 0x060001C6 RID: 454 RVA: 0x00006B08 File Offset: 0x00004D08
422 public static string SerializeObject(object value)
423 {
424 if (!true)
425 {
426 }
427 string text;
428 return text;
429 }
430
431 // Token: 0x060001C7 RID: 455 RVA: 0x00006B1C File Offset: 0x00004D1C
432 public static string SerializeObject(object value, Formatting formatting)
433 {
434 if (!true)
435 {
436 }
437 string text;
438 return text;
439 }
440
441 // Token: 0x060001C8 RID: 456 RVA: 0x00006B30 File Offset: 0x00004D30
442 public static string SerializeObject(object value, params JsonConverter[] converters)
443 {
444 if (value == null || true)
445 {
446 }
447 string text;
448 return text;
449 }
450
451 // Token: 0x060001C9 RID: 457 RVA: 0x00006B44 File Offset: 0x00004D44
453 {
454 if (formatting == Formatting.None || true)
455 {
456 }
457 string text;
458 return text;
459 }
460
461 // Token: 0x060001CA RID: 458 RVA: 0x00006B58 File Offset: 0x00004D58
462 public static string SerializeObject(object value, JsonSerializerSettings settings)
463 {
464 if (!true)
465 {
466 }
467 string text;
468 return text;
469 }
470
471 // Token: 0x060001CB RID: 459 RVA: 0x00006B6C File Offset: 0x00004D6C
472 public static string SerializeObject(object value, Type type, JsonSerializerSettings settings)
473 {
474 string text;
475 return text;
476 }
477
478 // Token: 0x060001CC RID: 460 RVA: 0x00006B7C File Offset: 0x00004D7C
479 public static string SerializeObject(object value, Formatting formatting, JsonSerializerSettings settings)
480 {
481 if (!true)
482 {
483 }
484 string text;
485 return text;
486 }
487
488 // Token: 0x060001CD RID: 461 RVA: 0x00006B90 File Offset: 0x00004D90
489 public static string SerializeObject(object value, Type type, Formatting formatting, JsonSerializerSettings settings)
490 {
491 string text;
492 return text;
493 }
494
495 // Token: 0x060001CE RID: 462 RVA: 0x00006BA0 File Offset: 0x00004DA0
497 {
498 if (!true)
499 {
500 }
502 if (!false)
503 {
504 }
505 throw new OutOfMemoryException();
506 }
507
508 // Token: 0x060001CF RID: 463 RVA: 0x00006BD8 File Offset: 0x00004DD8
509 public static object DeserializeObject(string value)
510 {
511 if (!true)
512 {
513 }
514 object obj;
515 return obj;
516 }
517
518 // Token: 0x060001D0 RID: 464 RVA: 0x00006BEC File Offset: 0x00004DEC
519 public static object DeserializeObject(string value, JsonSerializerSettings settings)
520 {
521 if (!true)
522 {
523 }
524 object obj;
525 return obj;
526 }
527
528 // Token: 0x060001D1 RID: 465 RVA: 0x00006C00 File Offset: 0x00004E00
529 public static object DeserializeObject(string value, Type type)
530 {
531 if (!true)
532 {
533 }
534 object obj;
535 return obj;
536 }
537
538 // Token: 0x060001D2 RID: 466 RVA: 0x00006C14 File Offset: 0x00004E14
539 public static T DeserializeObject<T>(string value)
540 {
541 /*
542An exception occurred when decompiling this method (060001D2)
543
544ICSharpCode.Decompiler.DecompilerException: Error decompiling T Newtonsoft.Json.JsonConvert::DeserializeObject<T>(System.String)
545
546 ---> System.Exception: Basic block has to end with unconditional control flow.
547{
548 IL_0000:
549 brtrue(IL_0000, ldc.i4:bool(1))
550}
551
552 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
553 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
554 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
555 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
556 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
557 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
558 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
559 --- End of inner exception stack trace ---
560 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
561 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
562*/;
563 }
564
565 // Token: 0x060001D3 RID: 467 RVA: 0x00006C24 File Offset: 0x00004E24
567 {
568 /*
569An exception occurred when decompiling this method (060001D3)
570
571ICSharpCode.Decompiler.DecompilerException: Error decompiling T Newtonsoft.Json.JsonConvert::DeserializeAnonymousType<T>(System.String,T)
572
573 ---> System.Exception: Basic block has to end with unconditional control flow.
574{
575 IL_0000:
576 brtrue(IL_0000, ldc.i4:bool(1))
577}
578
579 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
580 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
581 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
582 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
583 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
584 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
585 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
586 --- End of inner exception stack trace ---
587 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
588 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
589*/;
590 }
591
592 // Token: 0x060001D4 RID: 468 RVA: 0x00006C34 File Offset: 0x00004E34
594 {
595 /*
596An exception occurred when decompiling this method (060001D4)
597
598ICSharpCode.Decompiler.DecompilerException: Error decompiling T Newtonsoft.Json.JsonConvert::DeserializeAnonymousType<T>(System.String,T,Newtonsoft.Json.JsonSerializerSettings)
599
600 ---> System.Exception: Basic block has to end with unconditional control flow.
601{
602 IL_0003:
603 stloc:valuetype [mscorlib]System.Nullable`1<valuetype Newtonsoft.Json.FloatParseHandling>(var_0_09, ldfld:valuetype [mscorlib]System.Nullable`1<valuetype Newtonsoft.Json.FloatParseHandling>(JsonSerializerSettings::_floatParseHandling, ldloc:JsonSerializerSettings(settings)))
604}
605
606 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
607 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
608 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
609 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
610 --- End of inner exception stack trace ---
611 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
612 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
613*/;
614 }
615
616 // Token: 0x060001D5 RID: 469 RVA: 0x00006C4C File Offset: 0x00004E4C
618 {
619 object obj;
620 while (obj != null)
621 {
622 if (obj == null)
623 {
624 throw new InvalidCastException();
625 }
626 }
627 }
628
629 // Token: 0x060001D6 RID: 470 RVA: 0x0000212A File Offset: 0x0000032A
630 public static T DeserializeObject<T>(string value, JsonSerializerSettings settings)
631 {
632 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
633 }
634
635 // Token: 0x060001D7 RID: 471 RVA: 0x00006C68 File Offset: 0x00004E68
636 public static object DeserializeObject(string value, Type type, params JsonConverter[] converters)
637 {
638 if (type == null || true)
639 {
640 }
641 object obj;
642 return obj;
643 }
644
645 // Token: 0x060001D8 RID: 472 RVA: 0x00006C7C File Offset: 0x00004E7C
646 public static object DeserializeObject(string value, Type type, JsonSerializerSettings settings)
647 {
648 ValidationUtils.ArgumentNotNull("value", "value");
650 if (jsonSerializer._checkAdditionalContent == null)
651 {
652 }
653 if (!false)
654 {
655 }
656 throw new OutOfMemoryException();
657 }
658
659 // Token: 0x060001D9 RID: 473 RVA: 0x00006CC0 File Offset: 0x00004EC0
660 public static void PopulateObject(string value, object target)
661 {
662 if (!true)
663 {
664 }
665 }
666
667 // Token: 0x060001DA RID: 474 RVA: 0x00006CD0 File Offset: 0x00004ED0
668 public static void PopulateObject(string value, object target, JsonSerializerSettings settings)
669 {
671 }
672
673 // Token: 0x060001DB RID: 475 RVA: 0x00006D0C File Offset: 0x00004F0C
674 public static string SerializeXmlNode(XmlNode node)
675 {
676 if (!true)
677 {
678 }
679 string text;
680 return text;
681 }
682
683 // Token: 0x060001DC RID: 476 RVA: 0x00006D20 File Offset: 0x00004F20
684 public static string SerializeXmlNode(XmlNode node, Formatting formatting)
685 {
686 string text;
687 return text;
688 }
689
690 // Token: 0x060001DD RID: 477 RVA: 0x00006D34 File Offset: 0x00004F34
692 {
693 string text;
694 return text;
695 }
696
697 // Token: 0x060001DE RID: 478 RVA: 0x00006D48 File Offset: 0x00004F48
699 {
700 if (!true)
701 {
702 }
704 return xmlDocument;
705 }
706
707 // Token: 0x060001DF RID: 479 RVA: 0x00006D5C File Offset: 0x00004F5C
709 {
710 if (!true)
711 {
712 }
714 return xmlDocument;
715 }
716
717 // Token: 0x060001E0 RID: 480 RVA: 0x00006D70 File Offset: 0x00004F70
719 {
720 if (!true)
721 {
722 }
723 object obj;
724 if (obj != null)
725 {
726 }
727 throw new InvalidCastException();
728 }
729
730 // Token: 0x060001E1 RID: 481 RVA: 0x00006D90 File Offset: 0x00004F90
731 public static string SerializeXNode(XObject node)
732 {
733 if (!true)
734 {
735 }
736 string text;
737 return text;
738 }
739
740 // Token: 0x060001E2 RID: 482 RVA: 0x00006DA4 File Offset: 0x00004FA4
741 public static string SerializeXNode(XObject node, Formatting formatting)
742 {
743 if (!true)
744 {
745 }
746 string text;
747 return text;
748 }
749
750 // Token: 0x060001E3 RID: 483 RVA: 0x00006DB8 File Offset: 0x00004FB8
752 {
753 string text;
754 return text;
755 }
756
757 // Token: 0x060001E4 RID: 484 RVA: 0x00006DCC File Offset: 0x00004FCC
758 public static XDocument DeserializeXNode(string value)
759 {
760 if (!true)
761 {
762 }
764 return xdocument;
765 }
766
767 // Token: 0x060001E5 RID: 485 RVA: 0x00006DE0 File Offset: 0x00004FE0
769 {
770 if (!true)
771 {
772 }
774 return xdocument;
775 }
776
777 // Token: 0x060001E6 RID: 486 RVA: 0x00006DF4 File Offset: 0x00004FF4
779 {
780 if (!true)
781 {
782 }
783 object obj;
784 if (obj != null)
785 {
786 }
787 throw new InvalidCastException();
788 }
789
790 // Token: 0x040000E6 RID: 230
793
794 // Token: 0x040000E7 RID: 231
795 public static readonly string True;
796
797 // Token: 0x040000E8 RID: 232
798 public static readonly string False;
799
800 // Token: 0x040000E9 RID: 233
801 public static readonly string Null;
802
803 // Token: 0x040000EA RID: 234
804 public static readonly string Undefined;
805
806 // Token: 0x040000EB RID: 235
807 public static readonly string PositiveInfinity;
808
809 // Token: 0x040000EC RID: 236
810 public static readonly string NegativeInfinity;
811
812 // Token: 0x040000ED RID: 237
813 public static readonly string NaN;
814
815 // Token: 0x040000EE RID: 238
817 }
818}
class f__AnonymousType0<< Count > j__TPar
static string SerializeObject(object value, Formatting formatting, params JsonConverter[] converters)
static object DeserializeObject(string value, Type type, params JsonConverter[] converters)
static T DeserializeAnonymousType< T >(string value, T anonymousTypeObject)
static XmlDocument DeserializeXmlNode(string value, string deserializeRootElementName)
static Func< JsonSerializerSettings > DefaultSettings
static void PopulateObject(string value, object target, JsonSerializerSettings settings)
static string SerializeObject(object value, Formatting formatting, JsonSerializerSettings settings)
static object DeserializeObject(string value, Type type, JsonSerializerSettings settings)
static readonly string Null
static string ToString(DateTimeOffset value, DateFormatHandling format)
static string SerializeXmlNode(XmlNode node)
static string SerializeObject(object value, Formatting formatting)
static string ToString(ulong value)
static string ToString(string value, char delimiter)
static string SerializeObjectInternal(object value, Type type, JsonSerializer jsonSerializer)
static readonly string Undefined
static string SerializeObject(object value, params JsonConverter[] converters)
static object DeserializeObject(string value, JsonSerializerSettings settings)
static string ToString(string value)
static readonly string NaN
static string EnsureDecimalPlace(string text)
static XDocument DeserializeXNode(string value, string deserializeRootElementName)
static string ToString(DateTimeOffset value)
static T DeserializeObject< T >(string value)
static XmlDocument DeserializeXmlNode(string value)
static string EnsureDecimalPlace(double value, string text)
static string ToString(int value)
static Func< JsonSerializerSettings >< DefaultSettings > k__BackingField
static string SerializeXmlNode(XmlNode node, Formatting formatting, bool omitRootObject)
static string SerializeObject(object value, Type type, JsonSerializerSettings settings)
static string ToString(Uri value)
static string ToString(TimeSpan value, char quoteChar)
static string EnsureFloatFormat(double value, string text, FloatFormatHandling floatFormatHandling, char quoteChar, bool nullable)
static readonly string NegativeInfinity
static string ToString(long value)
static string ToString(uint value)
static readonly string PositiveInfinity
static string SerializeObject(object value, Type type, Formatting formatting, JsonSerializerSettings settings)
static object DeserializeObject(string value, Type type)
static readonly string True
static string ToString(sbyte value)
static string ToString(double value)
static string ToString(DateTime value)
static string ToString(float value, FloatFormatHandling floatFormatHandling, char quoteChar, bool nullable)
static string ToString(TimeSpan value)
static string ToString(string value, char delimiter, StringEscapeHandling stringEscapeHandling)
static string ToString(short value)
static object DeserializeObject(string value)
static string ToString(Enum value)
static string SerializeObject(object value, JsonSerializerSettings settings)
static string SerializeXNode(XObject node)
static string ToString(decimal value)
static string ToString(double value, FloatFormatHandling floatFormatHandling, char quoteChar, bool nullable)
static string SerializeObject(object value)
static JsonSerializerSettings GetDefaultSettings()
static string ToString(char value)
static void PopulateObject(string value, object target)
static string ToString(Uri value, char quoteChar)
static readonly string False
static readonly JsonSerializerSettings InitialSerializerSettings
static string ToString(float value)
static string ToString(byte value)
static string ToString(DateTime value, DateFormatHandling format, DateTimeZoneHandling timeZoneHandling)
static string SerializeXmlNode(XmlNode node, Formatting formatting)
static XmlDocument DeserializeXmlNode(string value, string deserializeRootElementName, bool writeArrayAttribute)
static string ToString(object value)
static string ToString(ushort value)
static string ToString(bool value)
static string SerializeXNode(XObject node, Formatting formatting)
static string SerializeXNode(XObject node, Formatting formatting, bool omitRootObject)
static string ToString(Guid value)
static XDocument DeserializeXNode(string value)
static string ToString(Guid value, char quoteChar)
static XDocument DeserializeXNode(string value, string deserializeRootElementName, bool writeArrayAttribute)
static JsonSerializer CreateDefault()
static PrimitiveTypeCode GetTypeCode(Type t)
static StringWriter CreateStringWriter(int capacity)
static void ArgumentNotNull(object value, string parameterName)
static CultureInfo InvariantCulture