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
JsonWriter.cs
Go to the documentation of this file.
1using System;
8
9namespace Newtonsoft.Json
10{
11 // Token: 0x0200003B RID: 59
12 [Preserve]
13 public abstract class JsonWriter : IDisposable
14 {
15 // Token: 0x06000241 RID: 577 RVA: 0x000078C4 File Offset: 0x00005AC4
16 internal static JsonWriter.State[][] BuildStateArray()
17 {
18 if (!true)
19 {
20 }
21 Type type;
23 long num = 0L;
24 int num2 = 7;
25 if (values != null)
26 {
27 }
28 if (num == 0L)
29 {
30 if (num2 == 0)
31 {
32 }
33 throw new InvalidCastException();
34 }
35 throw new OutOfMemoryException();
36 }
37
38 // Token: 0x06000242 RID: 578 RVA: 0x00007910 File Offset: 0x00005B10
43
44 // Token: 0x17000081 RID: 129
45 // (get) Token: 0x06000243 RID: 579 RVA: 0x0000792C File Offset: 0x00005B2C
46 // (set) Token: 0x06000244 RID: 580 RVA: 0x00007940 File Offset: 0x00005B40
47 public bool CloseOutput
48 {
50 get
51 {
52 return this.<CloseOutput>k__BackingField;
53 }
55 set
56 {
57 }
58 }
59
60 // Token: 0x17000082 RID: 130
61 // (get) Token: 0x06000245 RID: 581 RVA: 0x00007950 File Offset: 0x00005B50
62 protected internal int Top
63 {
64 get
65 {
66 /*
67An exception occurred when decompiling this method (06000245)
68
69ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 Newtonsoft.Json.JsonWriter::get_Top()
70
71 ---> System.Exception: Basic block has to end with unconditional control flow.
72{
73 IL_0011:
74 stloc:JsonPosition(var_2_17, ldfld:JsonPosition(JsonWriter::_currentPosition, ldloc:JsonWriter(this)))
75}
76
77 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
78 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
79 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
80 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
81 --- End of inner exception stack trace ---
82 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
83 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
84*/;
85 }
86 }
87
88 // Token: 0x17000083 RID: 131
89 // (get) Token: 0x06000246 RID: 582 RVA: 0x00007974 File Offset: 0x00005B74
91 {
92 get
93 {
94 /*
95An exception occurred when decompiling this method (06000246)
96
97ICSharpCode.Decompiler.DecompilerException: Error decompiling Newtonsoft.Json.WriteState Newtonsoft.Json.JsonWriter::get_WriteState()
98
99 ---> System.Exception: Basic block has to end with unconditional control flow.
100{
101 Block_0:
102 stloc:State(var_0_06, ldfld:State(JsonWriter::_currentState, ldloc:JsonWriter(this)))
103}
104
105 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
106 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
107 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
108 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
109 --- End of inner exception stack trace ---
110 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
111 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
112*/;
113 }
114 }
115
116 // Token: 0x17000084 RID: 132
117 // (get) Token: 0x06000247 RID: 583 RVA: 0x00007988 File Offset: 0x00005B88
118 internal string ContainerPath
119 {
120 get
121 {
122 while (this._currentPosition == null || this._stack == null)
123 {
124 }
125 string text;
126 return text;
127 }
128 }
129
130 // Token: 0x17000085 RID: 133
131 // (get) Token: 0x06000248 RID: 584 RVA: 0x000079A8 File Offset: 0x00005BA8
132 public string Path
133 {
134 get
135 {
136 if (this._currentPosition != null)
137 {
138 JsonWriter.State currentState = this._currentState;
139 }
141 string text;
142 return text;
143 }
144 }
145
146 // Token: 0x17000086 RID: 134
147 // (get) Token: 0x06000249 RID: 585 RVA: 0x000079CC File Offset: 0x00005BCC
148 // (set) Token: 0x0600024A RID: 586 RVA: 0x000079E0 File Offset: 0x00005BE0
150 {
151 get
152 {
153 return this._formatting;
154 }
155 set
156 {
158 }
159 }
160
161 // Token: 0x17000087 RID: 135
162 // (get) Token: 0x0600024B RID: 587 RVA: 0x000079F4 File Offset: 0x00005BF4
163 // (set) Token: 0x0600024C RID: 588 RVA: 0x00007A08 File Offset: 0x00005C08
165 {
166 get
167 {
168 return this._dateFormatHandling;
169 }
170 set
171 {
173 }
174 }
175
176 // Token: 0x17000088 RID: 136
177 // (get) Token: 0x0600024D RID: 589 RVA: 0x00007A1C File Offset: 0x00005C1C
178 // (set) Token: 0x0600024E RID: 590 RVA: 0x00007A30 File Offset: 0x00005C30
180 {
181 get
182 {
183 return this._dateTimeZoneHandling;
184 }
185 set
186 {
188 }
189 }
190
191 // Token: 0x17000089 RID: 137
192 // (get) Token: 0x0600024F RID: 591 RVA: 0x00007A44 File Offset: 0x00005C44
193 // (set) Token: 0x06000250 RID: 592 RVA: 0x00007A58 File Offset: 0x00005C58
195 {
196 get
197 {
198 return this._stringEscapeHandling;
199 }
200 set
201 {
203 }
204 }
205
206 // Token: 0x06000251 RID: 593 RVA: 0x00007A6C File Offset: 0x00005C6C
207 internal virtual void OnStringEscapeHandlingChanged()
208 {
209 }
210
211 // Token: 0x1700008A RID: 138
212 // (get) Token: 0x06000252 RID: 594 RVA: 0x00007A7C File Offset: 0x00005C7C
213 // (set) Token: 0x06000253 RID: 595 RVA: 0x00007A90 File Offset: 0x00005C90
215 {
216 get
217 {
218 return this._floatFormatHandling;
219 }
220 set
221 {
222 }
223 }
224
225 // Token: 0x1700008B RID: 139
226 // (get) Token: 0x06000254 RID: 596 RVA: 0x00007AA0 File Offset: 0x00005CA0
227 // (set) Token: 0x06000255 RID: 597 RVA: 0x00007AB4 File Offset: 0x00005CB4
228 public string DateFormatString
229 {
230 get
231 {
232 return this._dateFormatString;
233 }
234 set
235 {
237 }
238 }
239
240 // Token: 0x1700008C RID: 140
241 // (get) Token: 0x06000256 RID: 598 RVA: 0x00007AC8 File Offset: 0x00005CC8
242 // (set) Token: 0x06000257 RID: 599 RVA: 0x00007AE8 File Offset: 0x00005CE8
244 {
245 get
246 {
248 if (culture != null)
249 {
250 return culture;
251 }
253 }
254 set
255 {
257 }
258 }
259
260 // Token: 0x06000258 RID: 600 RVA: 0x00007AFC File Offset: 0x00005CFC
261 protected JsonWriter()
262 {
264 this.<CloseOutput>k__BackingField = true;
265 }
266
267 // Token: 0x06000259 RID: 601 RVA: 0x00007B20 File Offset: 0x00005D20
269 {
270 if (this._currentPosition.HasIndex)
271 {
272 int position = this._currentPosition.Position;
274 }
275 }
276
277 // Token: 0x0600025A RID: 602 RVA: 0x00007B54 File Offset: 0x00005D54
279 {
281 if (this._currentPosition != null)
282 {
283 if (this._stack == null)
284 {
285 }
286 stack = this._stack;
287 return;
288 }
290 }
291
292 // Token: 0x0600025B RID: 603 RVA: 0x00007B80 File Offset: 0x00005D80
294 {
295 /*
296An exception occurred when decompiling this method (0600025B)
297
298ICSharpCode.Decompiler.DecompilerException: Error decompiling Newtonsoft.Json.JsonContainerType Newtonsoft.Json.JsonWriter::Pop()
299
300 ---> System.Exception: Basic block has to end with unconditional control flow.
301{
302 Block_0:
303 stloc:int32(var_2_17, ldfld:int32(List`1::_size, ldloc:class [mscorlib]System.Collections.Generic.List`1<valuetype Newtonsoft.Json.JsonPosition>[exp:List`1](var_0_06)))
304 stloc:int32(var_3_23, ldfld:int32(List`1::_size, ldfld:class [mscorlib]System.Collections.Generic.List`1<valuetype Newtonsoft.Json.JsonPosition>[exp:List`1](JsonWriter::_stack, ldloc:JsonWriter(this))))
305}
306
307 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
308 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
309 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
310 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
311 --- End of inner exception stack trace ---
312 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
313 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
314*/;
315 }
316
317 // Token: 0x0600025C RID: 604 RVA: 0x00007BB0 File Offset: 0x00005DB0
319 {
320 /*
321An exception occurred when decompiling this method (0600025C)
322
323ICSharpCode.Decompiler.DecompilerException: Error decompiling Newtonsoft.Json.JsonContainerType Newtonsoft.Json.JsonWriter::Peek()
324
325 ---> System.Exception: Basic block has to end with unconditional control flow.
326{
327 Block_0:
328 stloc:JsonPosition(var_0_06, ldfld:JsonPosition(JsonWriter::_currentPosition, ldloc:JsonWriter(this)))
329}
330
331 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
332 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
333 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
334 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
335 --- End of inner exception stack trace ---
336 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
337 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
338*/;
339 }
340
341 // Token: 0x0600025D RID: 605
342 public abstract void Flush();
343
344 // Token: 0x0600025E RID: 606 RVA: 0x00007BC4 File Offset: 0x00005DC4
345 public virtual void Close()
346 {
347 this.AutoCompleteAll();
348 }
349
350 // Token: 0x0600025F RID: 607 RVA: 0x00007BD8 File Offset: 0x00005DD8
351 public virtual void WriteStartObject()
352 {
353 this.InternalWriteStart(JsonToken.StartObject, JsonContainerType.Object);
354 }
355
356 // Token: 0x06000260 RID: 608 RVA: 0x00007BF0 File Offset: 0x00005DF0
357 public virtual void WriteEndObject()
358 {
360 }
361
362 // Token: 0x06000261 RID: 609 RVA: 0x00007C04 File Offset: 0x00005E04
363 public virtual void WriteStartArray()
364 {
365 this.InternalWriteStart(JsonToken.StartArray, JsonContainerType.Array);
366 }
367
368 // Token: 0x06000262 RID: 610 RVA: 0x00007C1C File Offset: 0x00005E1C
369 public virtual void WriteEndArray()
370 {
372 }
373
374 // Token: 0x06000263 RID: 611 RVA: 0x00007C30 File Offset: 0x00005E30
375 public virtual void WriteStartConstructor(string name)
376 {
377 this.InternalWriteStart(JsonToken.StartConstructor, JsonContainerType.Constructor);
378 }
379
380 // Token: 0x06000264 RID: 612 RVA: 0x00007C48 File Offset: 0x00005E48
381 public virtual void WriteEndConstructor()
382 {
383 this.AutoCompleteClose(JsonContainerType.Constructor);
384 }
385
386 // Token: 0x06000265 RID: 613 RVA: 0x00007C5C File Offset: 0x00005E5C
387 public virtual void WritePropertyName(string name)
388 {
390 this.AutoComplete(JsonToken.PropertyName);
391 }
392
393 // Token: 0x06000266 RID: 614 RVA: 0x00007C7C File Offset: 0x00005E7C
394 public virtual void WritePropertyName(string name, bool escape)
395 {
396 }
397
398 // Token: 0x06000267 RID: 615 RVA: 0x00007C8C File Offset: 0x00005E8C
399 public virtual void WriteEnd()
400 {
402 }
403
404 // Token: 0x06000268 RID: 616 RVA: 0x00007CA0 File Offset: 0x00005EA0
405 public void WriteToken(JsonReader reader)
406 {
407 this.WriteToken(reader, true);
408 }
409
410 // Token: 0x06000269 RID: 617 RVA: 0x00007CB8 File Offset: 0x00005EB8
411 public void WriteToken(JsonReader reader, bool writeChildren)
412 {
413 ValidationUtils.ArgumentNotNull(reader, "reader");
414 }
415
416 // Token: 0x0600026A RID: 618 RVA: 0x00007CD0 File Offset: 0x00005ED0
417 public void WriteToken(JsonToken token, object value)
418 {
419 }
420
421 // Token: 0x0600026B RID: 619 RVA: 0x00007D64 File Offset: 0x00005F64
422 public void WriteToken(JsonToken token)
423 {
424 long num = 0L;
425 this.WriteToken(token, num);
426 }
427
428 // Token: 0x0600026C RID: 620 RVA: 0x00007D7C File Offset: 0x00005F7C
429 internal virtual void WriteToken(JsonReader reader, bool writeChildren, bool writeDateConstructorAsDate, bool writeComments)
430 {
431 if (reader != null)
432 {
433 return;
434 }
435 this.WriteConstructorDate(reader);
436 }
437
438 // Token: 0x0600026D RID: 621 RVA: 0x00007D98 File Offset: 0x00005F98
439 private void WriteConstructorDate(JsonReader reader)
440 {
441 }
442
443 // Token: 0x0600026E RID: 622 RVA: 0x00007DB0 File Offset: 0x00005FB0
444 private void WriteEnd(JsonContainerType type)
445 {
446 }
447
448 // Token: 0x0600026F RID: 623 RVA: 0x00007DC0 File Offset: 0x00005FC0
449 private void AutoCompleteAll()
450 {
451 int top = this.Top;
452 int top2 = this.Top;
453 }
454
455 // Token: 0x06000270 RID: 624 RVA: 0x0000212A File Offset: 0x0000032A
457 {
458 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
459 }
460
461 // Token: 0x06000271 RID: 625 RVA: 0x00007DDC File Offset: 0x00005FDC
466
467 // Token: 0x06000272 RID: 626 RVA: 0x00007E30 File Offset: 0x00006030
468 protected virtual void WriteEnd(JsonToken token)
469 {
470 }
471
472 // Token: 0x06000273 RID: 627 RVA: 0x00007E40 File Offset: 0x00006040
473 protected virtual void WriteIndent()
474 {
475 }
476
477 // Token: 0x06000274 RID: 628 RVA: 0x00007E50 File Offset: 0x00006050
478 protected virtual void WriteValueDelimiter()
479 {
480 }
481
482 // Token: 0x06000275 RID: 629 RVA: 0x00007E60 File Offset: 0x00006060
483 protected virtual void WriteIndentSpace()
484 {
485 }
486
487 // Token: 0x06000276 RID: 630 RVA: 0x00007E70 File Offset: 0x00006070
489 {
490 if (!true)
491 {
492 }
494 JsonWriter.State currentState = this._currentState;
495 if (this._currentState != JsonWriter.State.Start)
496 {
497 }
498 }
499
500 // Token: 0x06000277 RID: 631 RVA: 0x00007EC0 File Offset: 0x000060C0
501 public virtual void WriteNull()
502 {
503 if (this._currentPosition.HasIndex)
504 {
505 int position = this._currentPosition.Position;
507 }
508 }
509
510 // Token: 0x06000278 RID: 632 RVA: 0x00007EF4 File Offset: 0x000060F4
511 public virtual void WriteUndefined()
512 {
513 if (this._currentPosition.HasIndex)
514 {
515 int position = this._currentPosition.Position;
517 }
518 }
519
520 // Token: 0x06000279 RID: 633 RVA: 0x00007F28 File Offset: 0x00006128
521 public virtual void WriteRaw(string json)
522 {
523 }
524
525 // Token: 0x0600027A RID: 634 RVA: 0x00007F38 File Offset: 0x00006138
526 public virtual void WriteRawValue(string json)
527 {
528 if (this._currentPosition.HasIndex)
529 {
530 int position = this._currentPosition.Position;
532 }
533 }
534
535 // Token: 0x0600027B RID: 635 RVA: 0x00007F6C File Offset: 0x0000616C
536 public virtual void WriteValue(string value)
537 {
538 if (this._currentPosition.HasIndex)
539 {
540 int position = this._currentPosition.Position;
542 }
543 }
544
545 // Token: 0x0600027C RID: 636 RVA: 0x00007FA0 File Offset: 0x000061A0
546 public virtual void WriteValue(int value)
547 {
548 if (this._currentPosition.HasIndex)
549 {
550 int position = this._currentPosition.Position;
552 }
553 }
554
555 // Token: 0x0600027D RID: 637 RVA: 0x00007FD4 File Offset: 0x000061D4
556 [CLSCompliant(false)]
557 public virtual void WriteValue(uint value)
558 {
559 if (this._currentPosition.HasIndex)
560 {
561 int position = this._currentPosition.Position;
563 }
564 }
565
566 // Token: 0x0600027E RID: 638 RVA: 0x00008008 File Offset: 0x00006208
567 public virtual void WriteValue(long value)
568 {
569 if (this._currentPosition.HasIndex)
570 {
571 int position = this._currentPosition.Position;
573 }
574 }
575
576 // Token: 0x0600027F RID: 639 RVA: 0x0000803C File Offset: 0x0000623C
577 [CLSCompliant(false)]
578 public virtual void WriteValue(ulong value)
579 {
580 if (this._currentPosition.HasIndex)
581 {
582 int position = this._currentPosition.Position;
584 }
585 }
586
587 // Token: 0x06000280 RID: 640 RVA: 0x00008070 File Offset: 0x00006270
588 public virtual void WriteValue(float value)
589 {
590 if (this._currentPosition.HasIndex)
591 {
592 int position = this._currentPosition.Position;
594 }
595 }
596
597 // Token: 0x06000281 RID: 641 RVA: 0x000080A4 File Offset: 0x000062A4
598 public virtual void WriteValue(double value)
599 {
600 if (this._currentPosition.HasIndex)
601 {
602 int position = this._currentPosition.Position;
604 }
605 }
606
607 // Token: 0x06000282 RID: 642 RVA: 0x000080D8 File Offset: 0x000062D8
608 public virtual void WriteValue(bool value)
609 {
610 if (this._currentPosition.HasIndex)
611 {
612 int position = this._currentPosition.Position;
614 }
615 }
616
617 // Token: 0x06000283 RID: 643 RVA: 0x0000810C File Offset: 0x0000630C
618 public virtual void WriteValue(short value)
619 {
620 if (this._currentPosition.HasIndex)
621 {
622 int position = this._currentPosition.Position;
624 }
625 }
626
627 // Token: 0x06000284 RID: 644 RVA: 0x00008140 File Offset: 0x00006340
628 [CLSCompliant(false)]
629 public virtual void WriteValue(ushort value)
630 {
631 if (this._currentPosition.HasIndex)
632 {
633 int position = this._currentPosition.Position;
635 }
636 }
637
638 // Token: 0x06000285 RID: 645 RVA: 0x00008174 File Offset: 0x00006374
639 public virtual void WriteValue(char value)
640 {
641 if (this._currentPosition.HasIndex)
642 {
643 int position = this._currentPosition.Position;
645 }
646 }
647
648 // Token: 0x06000286 RID: 646 RVA: 0x000081A8 File Offset: 0x000063A8
649 public virtual void WriteValue(byte value)
650 {
651 if (this._currentPosition.HasIndex)
652 {
653 int position = this._currentPosition.Position;
655 }
656 }
657
658 // Token: 0x06000287 RID: 647 RVA: 0x000081DC File Offset: 0x000063DC
659 [CLSCompliant(false)]
660 public virtual void WriteValue(sbyte value)
661 {
662 if (this._currentPosition.HasIndex)
663 {
664 int position = this._currentPosition.Position;
666 }
667 }
668
669 // Token: 0x06000288 RID: 648 RVA: 0x00008210 File Offset: 0x00006410
670 public virtual void WriteValue(decimal value)
671 {
672 if (this._currentPosition.HasIndex)
673 {
674 int position = this._currentPosition.Position;
676 }
677 }
678
679 // Token: 0x06000289 RID: 649 RVA: 0x00008244 File Offset: 0x00006444
680 public virtual void WriteValue(DateTime value)
681 {
682 if (this._currentPosition.HasIndex)
683 {
684 int position = this._currentPosition.Position;
686 }
687 }
688
689 // Token: 0x0600028A RID: 650 RVA: 0x00008278 File Offset: 0x00006478
690 public virtual void WriteValue(DateTimeOffset value)
691 {
692 if (this._currentPosition.HasIndex)
693 {
694 int position = this._currentPosition.Position;
696 }
697 }
698
699 // Token: 0x0600028B RID: 651 RVA: 0x000082AC File Offset: 0x000064AC
700 public virtual void WriteValue(Guid value)
701 {
702 if (this._currentPosition.HasIndex)
703 {
704 int position = this._currentPosition.Position;
706 }
707 }
708
709 // Token: 0x0600028C RID: 652 RVA: 0x000082E0 File Offset: 0x000064E0
710 public virtual void WriteValue(TimeSpan value)
711 {
712 if (this._currentPosition.HasIndex)
713 {
714 int position = this._currentPosition.Position;
716 }
717 }
718
719 // Token: 0x0600028D RID: 653 RVA: 0x00008314 File Offset: 0x00006514
720 public virtual void WriteValue(int? value)
721 {
722 }
723
724 // Token: 0x0600028E RID: 654 RVA: 0x00008324 File Offset: 0x00006524
725 [CLSCompliant(false)]
726 public virtual void WriteValue(uint? value)
727 {
728 }
729
730 // Token: 0x0600028F RID: 655 RVA: 0x00008334 File Offset: 0x00006534
731 public virtual void WriteValue(long? value)
732 {
733 }
734
735 // Token: 0x06000290 RID: 656 RVA: 0x00008344 File Offset: 0x00006544
736 [CLSCompliant(false)]
737 public virtual void WriteValue(ulong? value)
738 {
739 }
740
741 // Token: 0x06000291 RID: 657 RVA: 0x00008354 File Offset: 0x00006554
742 public virtual void WriteValue(float? value)
743 {
744 }
745
746 // Token: 0x06000292 RID: 658 RVA: 0x00008364 File Offset: 0x00006564
747 public virtual void WriteValue(double? value)
748 {
749 }
750
751 // Token: 0x06000293 RID: 659 RVA: 0x00008374 File Offset: 0x00006574
752 public virtual void WriteValue(bool? value)
753 {
754 }
755
756 // Token: 0x06000294 RID: 660 RVA: 0x00008384 File Offset: 0x00006584
757 public virtual void WriteValue(short? value)
758 {
759 }
760
761 // Token: 0x06000295 RID: 661 RVA: 0x00008394 File Offset: 0x00006594
762 [CLSCompliant(false)]
763 public virtual void WriteValue(ushort? value)
764 {
765 }
766
767 // Token: 0x06000296 RID: 662 RVA: 0x000083A4 File Offset: 0x000065A4
768 public virtual void WriteValue(char? value)
769 {
770 }
771
772 // Token: 0x06000297 RID: 663 RVA: 0x000083B4 File Offset: 0x000065B4
773 public virtual void WriteValue(byte? value)
774 {
775 }
776
777 // Token: 0x06000298 RID: 664 RVA: 0x000083C4 File Offset: 0x000065C4
778 [CLSCompliant(false)]
779 public virtual void WriteValue(sbyte? value)
780 {
781 }
782
783 // Token: 0x06000299 RID: 665 RVA: 0x0000212A File Offset: 0x0000032A
784 public virtual void WriteValue(decimal? value)
785 {
786 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
787 }
788
789 // Token: 0x0600029A RID: 666 RVA: 0x000083D4 File Offset: 0x000065D4
790 public virtual void WriteValue(DateTime? value)
791 {
792 }
793
794 // Token: 0x0600029B RID: 667 RVA: 0x0000212A File Offset: 0x0000032A
795 public virtual void WriteValue(DateTimeOffset? value)
796 {
797 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
798 }
799
800 // Token: 0x0600029C RID: 668 RVA: 0x000083E4 File Offset: 0x000065E4
801 public virtual void WriteValue(Guid? value)
802 {
803 }
804
805 // Token: 0x0600029D RID: 669 RVA: 0x000083F4 File Offset: 0x000065F4
806 public virtual void WriteValue(TimeSpan? value)
807 {
808 }
809
810 // Token: 0x0600029E RID: 670 RVA: 0x00008404 File Offset: 0x00006604
811 public virtual void WriteValue(byte[] value)
812 {
813 if (value != null)
814 {
815 if (this._currentPosition.HasIndex)
816 {
817 int position = this._currentPosition.Position;
819 }
820 return;
821 }
822 }
823
824 // Token: 0x0600029F RID: 671 RVA: 0x0000843C File Offset: 0x0000663C
825 public virtual void WriteValue(Uri value)
826 {
827 if (!true)
828 {
829 }
830 }
831
832 // Token: 0x060002A0 RID: 672 RVA: 0x00008474 File Offset: 0x00006674
833 public virtual void WriteValue(object value)
834 {
835 Type type;
837 }
838
839 // Token: 0x060002A1 RID: 673 RVA: 0x0000848C File Offset: 0x0000668C
840 public virtual void WriteComment(string text)
841 {
842 this.AutoComplete(JsonToken.Comment);
843 }
844
845 // Token: 0x060002A2 RID: 674 RVA: 0x000084A0 File Offset: 0x000066A0
846 public virtual void WriteWhitespace(string ws)
847 {
849 }
850
851 // Token: 0x060002A3 RID: 675 RVA: 0x000084B4 File Offset: 0x000066B4
853 {
854 GC.SuppressFinalize(this);
855 }
856
857 // Token: 0x060002A4 RID: 676 RVA: 0x000084C8 File Offset: 0x000066C8
858 protected virtual void Dispose(bool disposing)
859 {
860 JsonWriter.State currentState = this._currentState;
861 }
862
863 // Token: 0x060002A5 RID: 677 RVA: 0x000084E0 File Offset: 0x000066E0
864 internal static void WriteValue(JsonWriter writer, PrimitiveTypeCode typeCode, object value)
865 {
866 }
867
868 // Token: 0x060002A6 RID: 678 RVA: 0x000085D0 File Offset: 0x000067D0
870 {
871 if (!true)
872 {
873 }
875 Type type = writer.GetType();
876 string text = "Unsupported type: {0}. Use the JsonSerializer class to get the object's JSON representation.".FormatWith(invariantCulture, type);
878 return ex;
879 }
880
881 // Token: 0x060002A7 RID: 679 RVA: 0x00008600 File Offset: 0x00006800
882 protected void SetWriteState(JsonToken token, object value)
883 {
884 }
885
886 // Token: 0x060002A8 RID: 680 RVA: 0x00008650 File Offset: 0x00006850
887 internal void InternalWriteEnd(JsonContainerType container)
888 {
889 this.AutoCompleteClose(container);
890 }
891
892 // Token: 0x060002A9 RID: 681 RVA: 0x00008664 File Offset: 0x00006864
893 internal void InternalWritePropertyName(string name)
894 {
896 this.AutoComplete(JsonToken.PropertyName);
897 }
898
899 // Token: 0x060002AA RID: 682 RVA: 0x00008684 File Offset: 0x00006884
900 internal void InternalWriteRaw()
901 {
902 }
903
904 // Token: 0x060002AB RID: 683 RVA: 0x00008694 File Offset: 0x00006894
905 internal void InternalWriteStart(JsonToken token, JsonContainerType container)
906 {
907 if (this._currentPosition.HasIndex)
908 {
909 int position = this._currentPosition.Position;
911 }
912 this.AutoComplete(token);
913 this.Push(container);
914 }
915
916 // Token: 0x060002AC RID: 684 RVA: 0x000086D4 File Offset: 0x000068D4
917 internal void InternalWriteValue(JsonToken token)
918 {
919 if (this._currentPosition.HasIndex)
920 {
921 int position = this._currentPosition.Position;
923 }
924 this.AutoComplete(token);
925 }
926
927 // Token: 0x060002AD RID: 685 RVA: 0x00008710 File Offset: 0x00006910
928 internal void InternalWriteWhitespace(string ws)
929 {
930 if (ws != null)
931 {
932 bool flag = StringUtils.IsWhiteSpace(ws);
933 }
934 }
935
936 // Token: 0x060002AE RID: 686 RVA: 0x00008728 File Offset: 0x00006928
937 internal void InternalWriteComment()
938 {
939 this.AutoComplete(JsonToken.Comment);
940 }
941
942 // Token: 0x04000131 RID: 305
944
945 // Token: 0x04000132 RID: 306
947
948 // Token: 0x04000133 RID: 307
950
951 // Token: 0x04000134 RID: 308
953
954 // Token: 0x04000135 RID: 309
956
957 // Token: 0x04000136 RID: 310
959
960 // Token: 0x04000137 RID: 311
962 private bool <CloseOutput>k__BackingField;
963
964 // Token: 0x04000138 RID: 312
966
967 // Token: 0x04000139 RID: 313
969
970 // Token: 0x0400013A RID: 314
972
973 // Token: 0x0400013B RID: 315
975
976 // Token: 0x0400013C RID: 316
977 private string _dateFormatString;
978
979 // Token: 0x0400013D RID: 317
981
982 // Token: 0x0200003C RID: 60
983 internal enum State
984 {
985 // Token: 0x0400013F RID: 319
986 Start,
987 // Token: 0x04000140 RID: 320
988 Property,
989 // Token: 0x04000141 RID: 321
991 // Token: 0x04000142 RID: 322
992 Object,
993 // Token: 0x04000143 RID: 323
995 // Token: 0x04000144 RID: 324
996 Array,
997 // Token: 0x04000145 RID: 325
999 // Token: 0x04000146 RID: 326
1001 // Token: 0x04000147 RID: 327
1002 Closed,
1003 // Token: 0x04000148 RID: 328
1004 Error
1005 }
1006 }
1007}
class f__AnonymousType0<< Count > j__TPar
JsonPosition _currentPosition
virtual void WriteValue(sbyte? value)
void WriteToken(JsonToken token, object value)
virtual void WriteEndObject()
StringEscapeHandling _stringEscapeHandling
static void WriteValue(JsonWriter writer, PrimitiveTypeCode typeCode, object value)
virtual void WriteValue(char value)
virtual void WriteValue(decimal? value)
JsonContainerType Pop()
virtual void WriteValue(DateTime value)
void InternalWriteStart(JsonToken token, JsonContainerType container)
JsonToken GetCloseTokenForType(JsonContainerType type)
virtual void WriteValue(Guid? value)
virtual void WriteValue(Guid value)
JsonContainerType Peek()
virtual void WriteToken(JsonReader reader, bool writeChildren, bool writeDateConstructorAsDate, bool writeComments)
void WriteConstructorDate(JsonReader reader)
void SetWriteState(JsonToken token, object value)
FloatFormatHandling _floatFormatHandling
void AutoComplete(JsonToken tokenBeingWritten)
virtual void WritePropertyName(string name)
void InternalWriteEnd(JsonContainerType container)
static JsonWriterException CreateUnsupportedTypeException(JsonWriter writer, object value)
virtual void WriteValue(DateTimeOffset? value)
DateFormatHandling _dateFormatHandling
virtual void WriteValue(double? value)
virtual void WriteComment(string text)
virtual void WriteValue(TimeSpan? value)
virtual void WriteValue(decimal value)
virtual void WriteValue(ulong value)
virtual void WriteValue(long? value)
virtual void WriteValue(ulong? value)
DateTimeZoneHandling _dateTimeZoneHandling
virtual void Dispose(bool disposing)
void WriteToken(JsonReader reader)
virtual void WriteValueDelimiter()
bool< CloseOutput > k__BackingField
virtual void WriteWhitespace(string ws)
virtual void WriteIndent()
virtual void WriteValue(float value)
virtual void WriteRaw(string json)
virtual void WriteValue(byte value)
virtual void WriteValue(byte? value)
void AutoCompleteClose(JsonContainerType type)
virtual void WriteEndArray()
virtual void WriteValue(short? value)
void InternalWriteValue(JsonToken token)
virtual void WriteValue(byte[] value)
void WriteToken(JsonToken token)
virtual void WriteValue(TimeSpan value)
virtual void WriteValue(char? value)
virtual void WriteStartArray()
void Push(JsonContainerType value)
virtual void WriteValue(sbyte value)
virtual void WriteValue(DateTimeOffset value)
List< JsonPosition > _stack
virtual void WriteValue(string value)
virtual void WriteEndConstructor()
virtual void WriteValue(Uri value)
virtual void WriteValue(DateTime? value)
virtual void WriteValue(int? value)
virtual void WriteStartObject()
virtual void OnStringEscapeHandlingChanged()
virtual void WriteValue(double value)
virtual void WriteValue(bool value)
virtual void WriteValue(object value)
virtual void WriteValue(uint value)
virtual void WriteStartConstructor(string name)
virtual void WriteValue(long value)
JsonWriter.State _currentState
void WriteToken(JsonReader reader, bool writeChildren)
virtual void WriteValue(bool? value)
virtual void WriteValue(uint? value)
virtual void WriteValue(int value)
virtual void WriteValue(float? value)
void InternalWriteWhitespace(string ws)
virtual void WriteUndefined()
static readonly JsonWriter.State[][] StateArray
virtual void WriteIndentSpace()
void InternalWritePropertyName(string name)
virtual void WriteValue(ushort? value)
static readonly JsonWriter.State[][] StateArrayTempate
virtual void WriteValue(ushort value)
virtual void WritePropertyName(string name, bool escape)
void WriteEnd(JsonContainerType type)
virtual void WriteValue(short value)
static JsonWriter.State[][] BuildStateArray()
Definition JsonWriter.cs:16
virtual void WriteRawValue(string json)
virtual void WriteEnd(JsonToken token)
static PrimitiveTypeCode GetTypeCode(Type t)
static IList< object > GetValues(Type enumType)
Definition EnumUtils.cs:58
static bool IsWhiteSpace(string s)
static void ArgumentNotNull(object value, string parameterName)
static void SuppressFinalize(object obj)
Definition GC.cs:116
static CultureInfo InvariantCulture