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
XmlWellFormedWriter.cs
Go to the documentation of this file.
1using System;
4using System.Text;
6
7namespace System.Xml
8{
9 // Token: 0x0200004E RID: 78
11 {
12 // Token: 0x060003C7 RID: 967 RVA: 0x0000F0C8 File Offset: 0x0000D2C8
14 {
16 this.xmlCharType = instance;
17 base..ctor();
19 if (writer != null)
20 {
21 }
22 }
23
24 // Token: 0x170000C2 RID: 194
25 // (get) Token: 0x060003C8 RID: 968 RVA: 0x0000F194 File Offset: 0x0000D394
26 public override WriteState WriteState
27 {
28 get
29 {
30 /*
31An exception occurred when decompiling this method (060003C8)
32
33ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Xml.WriteState System.Xml.XmlWellFormedWriter::get_WriteState()
34
35 ---> System.Exception: Basic block has to end with unconditional control flow.
36{
37 Block_0:
38 stloc:State(var_0_06, ldfld:State(XmlWellFormedWriter::currentState, ldloc:XmlWellFormedWriter(this)))
39 stloc:State(var_1_0D, ldfld:State(XmlWellFormedWriter::currentState, ldloc:XmlWellFormedWriter(this)))
40}
41
42 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
43 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
44 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
45 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
46 --- End of inner exception stack trace ---
47 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
48 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
49*/;
50 }
51 }
52
53 // Token: 0x060003C9 RID: 969 RVA: 0x0000F1B0 File Offset: 0x0000D3B0
54 public override void WriteStartDocument()
55 {
56 }
57
58 // Token: 0x060003CA RID: 970 RVA: 0x0000F1C0 File Offset: 0x0000D3C0
59 public override void WriteStartDocument(bool standalone)
60 {
61 }
62
63 // Token: 0x060003CB RID: 971 RVA: 0x0000F1D0 File Offset: 0x0000D3D0
64 public override void WriteEndDocument()
65 {
66 int num = this.elemTop;
67 }
68
69 // Token: 0x060003CC RID: 972 RVA: 0x0000F220 File Offset: 0x0000D420
70 public override void WriteDocType(string name, string pubid, string sysid, string subset)
71 {
72 if (name != null && name._stringLength != 0)
73 {
75 if (!this.dtdWritten)
76 {
77 if (this.conformanceLevel == ConformanceLevel.Auto)
78 {
79 int num = 2;
81 if (num == 0)
82 {
83 }
84 this.stateTable = num;
85 }
86 if (this.checkCharacters)
87 {
88 if (pubid != null)
89 {
90 }
91 if (sysid != null)
92 {
93 }
94 if (subset != null)
95 {
96 }
97 }
99 int num2 = 1;
100 this.dtdWritten = num2 != 0;
101 return;
102 }
103 }
104 else
105 {
106 string @string = Res.GetString("The empty string '' is not a valid name.");
107 string string2 = Res.GetString("DTD is not allowed in XML fragments.");
108 }
109 int num3 = 16;
111 string string3 = Res.GetString("The DTD has already been written out.");
112 string[] array;
113 string string4 = Res.GetString("'{0}', hexadecimal value {1}, is an invalid character.", array);
114 string[] array2;
115 string string5 = Res.GetString("'{0}', hexadecimal value {1}, is an invalid character.", array2);
116 string[] array3;
117 string string6 = Res.GetString("'{0}', hexadecimal value {1}, is an invalid character.", array3);
118 }
119
120 // Token: 0x060003CD RID: 973 RVA: 0x0000F30C File Offset: 0x0000D50C
121 public override void WriteStartElement(string prefix, string localName, string ns)
122 {
123 if (localName != null && localName._stringLength != 0)
124 {
125 this.CheckNCName(localName);
126 if (prefix != null)
127 {
128 int stringLength = prefix._stringLength;
129 this.CheckNCName(prefix);
130 string text;
131 if (ns == null)
132 {
133 text = this.LookupNamespace(prefix);
134 if (text == null)
135 {
136 goto IL_003F;
137 }
138 }
139 if (text._stringLength != 0)
140 {
141 goto IL_0050;
142 }
143 IL_003F:
144 string @string = Res.GetString("Cannot use a prefix with an empty namespace.");
145 }
146 string text2;
147 if (this != null || text2 == null)
148 {
149 }
150 IL_0050:
151 if (this.elemTop == 0 && this.rawWriter != null)
152 {
154 }
156 int num = this.elemTop;
157 string namespaceUri = this.elemScopeStack.namespaceUri;
159 int num2 = this.nsTop;
160 int num3 = this.attrCount;
162 return;
163 }
164 string string2 = Res.GetString("The empty string '' is not a valid local name.");
165 }
166
167 // Token: 0x060003CE RID: 974 RVA: 0x0000F3F4 File Offset: 0x0000D5F4
168 public override void WriteEndElement()
169 {
170 if (this.rawWriter != null)
171 {
172 string xmlLang = this.elemScopeStack.xmlLang;
173 return;
174 }
177 bool flag = this.useNsHashtable;
178 XmlSpace xmlSpace = array.xmlSpace;
179 if (flag)
180 {
181 int num = this.nsTop;
182 }
183 this.nsTop = (int)xmlSpace;
186 int num2 = 7;
188 }
189
190 // Token: 0x060003CF RID: 975 RVA: 0x0000F47C File Offset: 0x0000D67C
191 public override void WriteFullEndElement()
192 {
193 if (this.rawWriter != null)
194 {
195 string xmlLang = this.elemScopeStack.xmlLang;
196 return;
197 }
200 bool flag = this.useNsHashtable;
201 XmlSpace xmlSpace = array.xmlSpace;
202 if (flag)
203 {
204 int num = this.nsTop;
205 }
206 this.nsTop = (int)xmlSpace;
209 int num2 = 7;
211 }
212
213 // Token: 0x060003D0 RID: 976 RVA: 0x0000F504 File Offset: 0x0000D704
214 public override void WriteStartAttribute(string prefix, string localName, string namespaceName)
215 {
216 if (localName == null || localName._stringLength == 0)
217 {
218 bool flag = prefix == "xmlns";
219 }
220 this.CheckNCName("xmlns");
221 string text;
222 if (namespaceName == null && text == null)
223 {
224 return;
225 }
226 this.curDeclPrefix = "xmlns";
227 }
228
229 // Token: 0x060003D1 RID: 977 RVA: 0x0000F638 File Offset: 0x0000D838
234
235 // Token: 0x060003D2 RID: 978 RVA: 0x0000F8A0 File Offset: 0x0000DAA0
236 public override void WriteCData(string text)
237 {
238 if (text == null)
239 {
240 }
242 }
243
244 // Token: 0x060003D3 RID: 979 RVA: 0x0000F8CC File Offset: 0x0000DACC
245 public override void WriteComment(string text)
246 {
247 if (text == null)
248 {
249 }
251 }
252
253 // Token: 0x060003D4 RID: 980 RVA: 0x0000F8F8 File Offset: 0x0000DAF8
254 public override void WriteProcessingInstruction(string name, string text)
255 {
256 if (name != null && name._stringLength != 0)
257 {
258 this.CheckNCName(name);
259 if (text == null)
260 {
261 }
262 int stringLength = name._stringLength;
263 int num;
264 if (num != 0)
265 {
267 return;
268 }
269 if (this.currentState == XmlWellFormedWriter.State.Start)
270 {
271 int num2 = 1;
273 if (this.rawWriter != null)
274 {
275 return;
276 }
278 return;
279 }
280 }
281 else
282 {
283 string @string = Res.GetString("The empty string '' is not a valid name.");
284 }
286 }
287
288 // Token: 0x060003D5 RID: 981 RVA: 0x0000F990 File Offset: 0x0000DB90
289 public override void WriteEntityRef(string name)
290 {
291 if (name == null || name._stringLength == 0)
292 {
293 string @string = Res.GetString("The empty string '' is not a valid name.");
294 return;
295 }
296 this.CheckNCName(name);
298 {
300 return;
301 }
303 }
304
305 // Token: 0x060003D6 RID: 982 RVA: 0x0000F9EC File Offset: 0x0000DBEC
306 public override void WriteCharEntity(char ch)
307 {
308 if (!true)
309 {
310 }
311 bool flag = char.IsSurrogate(ch);
313 {
315 return;
316 }
318 }
319
320 // Token: 0x060003D7 RID: 983 RVA: 0x0000FA44 File Offset: 0x0000DC44
321 public override void WriteSurrogateCharEntity(char lowChar, char highChar)
322 {
323 if (!true)
324 {
325 }
326 bool flag = char.IsSurrogatePair(highChar, lowChar);
328 {
330 return;
331 }
333 }
334
335 // Token: 0x060003D8 RID: 984 RVA: 0x0000FA9C File Offset: 0x0000DC9C
336 public override void WriteWhitespace(string ws)
337 {
338 if (ws == null)
339 {
340 }
343 {
345 return;
346 }
348 }
349
350 // Token: 0x060003D9 RID: 985 RVA: 0x0000FAF4 File Offset: 0x0000DCF4
351 public override void WriteString(string text)
352 {
353 if (text != null)
354 {
356 {
357 this.attrValueCache.WriteString(text);
358 return;
359 }
361 }
362 }
363
364 // Token: 0x060003DA RID: 986 RVA: 0x0000FB34 File Offset: 0x0000DD34
365 public override void WriteChars(char[] buffer, int index, int count)
366 {
367 if (buffer == null)
368 {
369 return;
370 }
372 {
373 this.attrValueCache.WriteChars(buffer, index, count);
374 return;
375 }
377 }
378
379 // Token: 0x060003DB RID: 987 RVA: 0x0000FB7C File Offset: 0x0000DD7C
380 public override void WriteRaw(char[] buffer, int index, int count)
381 {
382 if (buffer == null)
383 {
384 return;
385 }
387 {
388 this.attrValueCache.WriteRaw(buffer, index, count);
389 return;
390 }
392 }
393
394 // Token: 0x060003DC RID: 988 RVA: 0x0000FBC4 File Offset: 0x0000DDC4
395 public override void WriteRaw(string data)
396 {
397 if (data != null)
398 {
400 {
401 this.attrValueCache.WriteRaw(data);
402 return;
403 }
405 }
406 }
407
408 // Token: 0x060003DD RID: 989 RVA: 0x0000FC04 File Offset: 0x0000DE04
409 public override void WriteBase64(byte[] buffer, int index, int count)
410 {
411 if (buffer != null)
412 {
414 return;
415 }
416 }
417
418 // Token: 0x060003DE RID: 990 RVA: 0x0000FC34 File Offset: 0x0000DE34
419 public override void Close()
420 {
423 {
424 int num = this.elemTop;
426 return;
427 }
428 int num2 = this.elemTop;
431 if (xmlRawWriter != null)
432 {
433 }
434 XmlRawWriterBase64Encoder base64Encoder = xmlRawWriter.base64Encoder;
435 }
436
437 // Token: 0x060003DF RID: 991 RVA: 0x0000FC98 File Offset: 0x0000DE98
438 public override void Flush()
439 {
441 }
442
443 // Token: 0x060003E0 RID: 992 RVA: 0x0000FCC0 File Offset: 0x0000DEC0
444 public override string LookupPrefix(string ns)
445 {
446 if (ns != null)
447 {
449 if (this.predefinedNamespaces != null)
450 {
452 int num = this.nsTop;
454 }
455 bool flag;
456 bool value = flag.m_value;
457 }
458 int num2 = 16;
460 throw new OutOfMemoryException();
461 }
462
463 // Token: 0x060003E1 RID: 993 RVA: 0x0000FD14 File Offset: 0x0000DF14
464 public override void WriteValue(string value)
465 {
466 if (value != null)
467 {
469 {
470 this.attrValueCache.WriteValue(value);
471 return;
472 }
474 }
475 }
476
477 // Token: 0x060003E2 RID: 994 RVA: 0x0000FD54 File Offset: 0x0000DF54
478 public override void WriteBinHex(byte[] buffer, int index, int count)
479 {
481 BinHexEncoder.Encode(buffer, index, count, this);
482 }
483
484 // Token: 0x170000C3 RID: 195
485 // (get) Token: 0x060003E3 RID: 995 RVA: 0x0000FD88 File Offset: 0x0000DF88
487 {
488 get
489 {
490 return this.rawWriter;
491 }
492 }
493
494 // Token: 0x170000C4 RID: 196
495 // (get) Token: 0x060003E4 RID: 996 RVA: 0x0000FD9C File Offset: 0x0000DF9C
496 private bool SaveAttrValue
497 {
498 get
499 {
500 /*
501An exception occurred when decompiling this method (060003E4)
502
503ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean System.Xml.XmlWellFormedWriter::get_SaveAttrValue()
504
505 ---> System.Exception: Basic block has to end with unconditional control flow.
506{
507 Block_0:
508 stloc:SpecialAttribute(var_0_06, ldfld:SpecialAttribute(XmlWellFormedWriter::specAttr, ldloc:XmlWellFormedWriter(this)))
509}
510
511 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
512 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
513 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
514 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
515 --- End of inner exception stack trace ---
516 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
517 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
518*/;
519 }
520 }
521
522 // Token: 0x170000C5 RID: 197
523 // (get) Token: 0x060003E5 RID: 997 RVA: 0x0000FDB0 File Offset: 0x0000DFB0
524 private bool InBase64
525 {
526 get
527 {
529 return true;
530 }
531 }
532
533 // Token: 0x060003E6 RID: 998 RVA: 0x0000FDC8 File Offset: 0x0000DFC8
539
540 // Token: 0x060003E7 RID: 999 RVA: 0x0000FDF4 File Offset: 0x0000DFF4
541 private void WriteStartDocumentImpl(XmlStandalone standalone)
542 {
543 if (this.conformanceLevel != ConformanceLevel.Auto)
544 {
545 string @string = Res.GetString("WriteStartDocument cannot be called on writers created with ConformanceLevel.Fragment.");
546 }
547 int num = 2;
549 if (num == 0)
550 {
551 }
552 this.stateTable = num;
553 if (this.rawWriter != null)
554 {
555 if (!this.xmlDeclFollows)
556 {
557 return;
558 }
559 }
560 else
561 {
563 }
564 }
565
566 // Token: 0x060003E8 RID: 1000 RVA: 0x0000FE58 File Offset: 0x0000E058
567 private void StartFragment()
568 {
570 }
571
572 // Token: 0x060003E9 RID: 1001 RVA: 0x0000FE6C File Offset: 0x0000E06C
573 private void PushNamespaceImplicit(string prefix, string ns)
574 {
575 int num = this.LookupNamespaceIndex(prefix);
576 XmlSpace xmlSpace = this.elemScopeStack.xmlSpace;
578 }
579
580 // Token: 0x060003EA RID: 1002 RVA: 0x0000FF3C File Offset: 0x0000E13C
581 private bool PushNamespaceExplicit(string prefix, string ns)
582 {
583 /*
584An exception occurred when decompiling this method (060003EA)
585
586ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean System.Xml.XmlWellFormedWriter::PushNamespaceExplicit(System.String,System.String)
587
588 ---> System.Exception: Basic block has to end with unconditional control flow.
589{
590 IL_00FD:
591 stloc:XmlException(var_26_10C, call:XmlException(XmlWellFormedWriter::DupAttrException, ldstr:string("xmlns"), ldstr:string("xmlns")))
592 stloc:string(var_27_118, call:string(Res::GetString, ldstr:string("Prefix \"xmlns\" is reserved for use by XML.")))
593}
594
595 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
596 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
597 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
598 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
599 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
600 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
601 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
602 --- End of inner exception stack trace ---
603 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
604 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
605*/;
606 }
607
608 // Token: 0x060003EB RID: 1003 RVA: 0x00010064 File Offset: 0x0000E264
609 private void AddNamespace(string prefix, string ns, XmlWellFormedWriter.NamespaceKind kind)
610 {
611 int num = this.nsTop;
613 this.nsTop = 0;
615 int num2 = this.nsTop;
616 }
617
618 // Token: 0x060003EC RID: 1004 RVA: 0x000100D8 File Offset: 0x0000E2D8
626
627 // Token: 0x060003ED RID: 1005 RVA: 0x00010104 File Offset: 0x0000E304
628 private int LookupNamespaceIndex(string prefix)
629 {
630 if (this.useNsHashtable)
631 {
633 }
634 int num = this.nsTop;
636 return num;
637 }
638
639 // Token: 0x060003EE RID: 1006 RVA: 0x00010130 File Offset: 0x0000E330
645
646 // Token: 0x060003EF RID: 1007 RVA: 0x00003FFD File Offset: 0x000021FD
647 private static XmlException DupAttrException(string prefix, string localName)
648 {
649 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
650 }
651
652 // Token: 0x060003F0 RID: 1008 RVA: 0x0001014C File Offset: 0x0000E34C
658
659 // Token: 0x060003F1 RID: 1009 RVA: 0x00010208 File Offset: 0x0000E408
660 private void StartElementContent()
661 {
666 if (this.rawWriter != null)
667 {
668 return;
669 }
670 }
671
672 // Token: 0x060003F2 RID: 1010 RVA: 0x00010240 File Offset: 0x0000E440
674 {
675 return "Error";
676 }
677
678 // Token: 0x060003F3 RID: 1011 RVA: 0x00010260 File Offset: 0x0000E460
679 internal string LookupNamespace(string prefix)
680 {
681 /*
682An exception occurred when decompiling this method (060003F3)
683
684ICSharpCode.Decompiler.DecompilerException: Error decompiling System.String System.Xml.XmlWellFormedWriter::LookupNamespace(System.String)
685
686 ---> System.Exception: Basic block has to end with unconditional control flow.
687{
688 IL_000F:
689 stloc:int64(var_2_15, ldfld:int64(int64::m_value, ldc.i4:int32[exp:int64&](0)))
690}
691
692 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
693 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
694 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
695 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
696 --- End of inner exception stack trace ---
697 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
698 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
699*/;
700 }
701
702 // Token: 0x060003F4 RID: 1012 RVA: 0x00010284 File Offset: 0x0000E484
703 private string LookupLocalNamespace(string prefix)
704 {
705 /*
706An exception occurred when decompiling this method (060003F4)
707
708ICSharpCode.Decompiler.DecompilerException: Error decompiling System.String System.Xml.XmlWellFormedWriter::LookupLocalNamespace(System.String)
709
710 ---> System.Exception: Basic block has to end with unconditional control flow.
711{
712 Block_0:
713 stloc:valuetype System.Xml.XmlWellFormedWriter/ElementScope[](var_0_06, ldfld:valuetype System.Xml.XmlWellFormedWriter/ElementScope[](XmlWellFormedWriter::elemScopeStack, ldloc:XmlWellFormedWriter(this)))
714 stloc:int32(var_1_0D, ldfld:int32(XmlWellFormedWriter::nsTop, ldloc:XmlWellFormedWriter(this)))
715 stloc:XmlSpace(var_2_14, ldfld:XmlSpace(ElementScope::xmlSpace, ldloc:valuetype System.Xml.XmlWellFormedWriter/ElementScope[][exp:valuetype System.Xml.XmlWellFormedWriter/ElementScope&](var_0_06)))
716 stloc:valuetype System.Xml.XmlWellFormedWriter/Namespace[](var_3_1B, ldfld:valuetype System.Xml.XmlWellFormedWriter/Namespace[](XmlWellFormedWriter::nsStack, ldloc:XmlWellFormedWriter(this)))
717 stloc:XmlSpace(var_5_27, ldfld:XmlSpace(ElementScope::xmlSpace, ldfld:valuetype System.Xml.XmlWellFormedWriter/ElementScope[][exp:valuetype System.Xml.XmlWellFormedWriter/ElementScope&](XmlWellFormedWriter::elemScopeStack, ldloc:XmlWellFormedWriter(this))))
718 stloc:valuetype System.Xml.XmlWellFormedWriter/Namespace[](var_7_32, ldfld:valuetype System.Xml.XmlWellFormedWriter/Namespace[](XmlWellFormedWriter::nsStack, ldloc:XmlWellFormedWriter(this)))
719}
720
721 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
722 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
723 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
724 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
725 --- End of inner exception stack trace ---
726 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
727 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
728*/;
729 }
730
731 // Token: 0x060003F5 RID: 1013 RVA: 0x000102C4 File Offset: 0x0000E4C4
732 private string GeneratePrefix()
733 {
734 string text3;
735 do
736 {
737 if (this.nsTop == 0)
738 {
739 }
741 string text2;
742 string text = "p" + text2;
743 if (this.LookupNamespace(text) == null)
744 {
745 break;
746 }
747 if ("p" == null)
748 {
749 }
751 string text4;
752 text3 = text + text4;
753 }
754 while (this.LookupNamespace(text3) != null);
755 return text3;
756 }
757
758 // Token: 0x060003F6 RID: 1014 RVA: 0x00010320 File Offset: 0x0000E520
759 private void CheckNCName(string ncname)
760 {
761 int stringLength = ncname._stringLength;
763 long num = 0L;
764 char c = ncname[(int)num];
765 int num2 = 1;
767 char c2 = ncname[num2];
768 }
769
770 // Token: 0x060003F7 RID: 1015 RVA: 0x00010368 File Offset: 0x0000E568
772 {
773 throw new ArrayTypeMismatchException();
774 }
775
776 // Token: 0x060003F8 RID: 1016 RVA: 0x0001037C File Offset: 0x0000E57C
778 {
779 /*
780An exception occurred when decompiling this method (060003F8)
781
782ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void System.Xml.XmlWellFormedWriter::ThrowInvalidStateTransition(System.Xml.XmlWellFormedWriter/Token,System.Xml.XmlWellFormedWriter/State)
783
784 ---> System.Exception: Basic block has to end with unconditional control flow.
785{
786 Block_2:
787 stloc:ConformanceLevel(var_3_24, ldfld:ConformanceLevel(XmlWellFormedWriter::conformanceLevel, ldloc:XmlWellFormedWriter(this)))
788 stloc:string(var_4_2F, call:string(Res::GetString, ldstr:string("Make sure that the ConformanceLevel setting is set to ConformanceLevel.Fragment or ConformanceLevel.Auto if you want to write an XML fragment.")))
789 stloc:string(var_5_3E, call:string(string::Concat, ldloc:string(var_2), ldstr:string(" "), ldloc:string(var_4_2F)))
790}
791
792 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
793 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
794 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
795 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
796 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
797 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
798 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
799 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
800 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
801 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
802 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
803 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
804 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
805 --- End of inner exception stack trace ---
806 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
807 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
808*/;
809 }
810
811 // Token: 0x170000C6 RID: 198
812 // (get) Token: 0x060003F9 RID: 1017 RVA: 0x000103C8 File Offset: 0x0000E5C8
814 {
815 get
816 {
817 /*
818An exception occurred when decompiling this method (060003F9)
819
820ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean System.Xml.XmlWellFormedWriter::get_IsClosedOrErrorState()
821
822 ---> System.Exception: Basic block has to end with unconditional control flow.
823{
824 Block_0:
825 stloc:State(var_0_06, ldfld:State(XmlWellFormedWriter::currentState, ldloc:XmlWellFormedWriter(this)))
826}
827
828 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
829 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
830 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
831 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
832 --- End of inner exception stack trace ---
833 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
834 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
835*/;
836 }
837 }
838
839 // Token: 0x060003FA RID: 1018 RVA: 0x000103DC File Offset: 0x0000E5DC
840 private void AddAttribute(string prefix, string localName, string namespaceName)
841 {
842 int num = 1;
844 this.attrCount = num;
845 int prev = array.prev;
847 int num2 = this.attrCount;
848 if (this.attrHashTable == null)
849 {
851 }
852 long num3 = 0L;
853 this.AddToAttrHashTable((int)num3);
854 this.AddToAttrHashTable((int)num3);
857 }
858
859 // Token: 0x060003FB RID: 1019 RVA: 0x00010454 File Offset: 0x0000E654
869
870 // Token: 0x060003FC RID: 1020 RVA: 0x00010490 File Offset: 0x0000E690
871 // Note: this type is marked as 'beforefieldinit'.
873 {
874 if (("Start" == null || "Start" != null) && ("TopLevel" == null || "TopLevel" != null) && ("Document" == null || "Document" != null) && ("Element Start Tag" == null || "Element Start Tag" != null) && ("Element Content" == null || "Element Content" != null) && ("Element Content" == null || "Element Content" != null) && ("Attribute" == null || "Attribute" != null) && ("EndRootElement" == null || "EndRootElement" != null) && ("Attribute" == null || "Attribute" != null) && ("Special Attribute" == null || "Special Attribute" != null) && ("End Document" == null || "End Document" != null) && ("Root Level Attribute Value" == null || "Root Level Attribute Value" != null) && ("Root Level Special Attribute Value" == null || "Root Level Special Attribute Value" != null) && ("Root Level Base64 Attribute Value" == null || "Root Level Base64 Attribute Value" != null) && ("After Root Level Attribute" == null || "After Root Level Attribute" != null) && ("Closed" == null || "Closed" != null) && ("Error" == null || "Error" != null) && ("StartDocument" == null || "StartDocument" != null) && ("EndDocument" == null || "EndDocument" != null) && ("PI" == null || "PI" != null) && ("Comment" == null || "Comment" != null) && ("DTD" == null || "DTD" != null) && ("StartElement" == null || "StartElement" != null) && ("EndElement" == null || "EndElement" != null) && ("StartAttribute" == null || "StartAttribute" != null) && ("EndAttribute" == null || "EndAttribute" != null) && ("Text" == null || "Text" != null) && ("CDATA" == null || "CDATA" != null) && ("Atomic value" == null || "Atomic value" != null) && ("Base64" == null || "Base64" != null) && ("RawData" == null || "RawData" != null) && ("Whitespace" == null || "Whitespace" != null))
875 {
876 return;
877 }
878 throw new ArrayTypeMismatchException();
879 }
880
881 // Token: 0x040001DE RID: 478
883
884 // Token: 0x040001DF RID: 479
886
887 // Token: 0x040001E0 RID: 480
889
890 // Token: 0x040001E1 RID: 481
892
893 // Token: 0x040001E2 RID: 482
894 private int nsTop;
895
896 // Token: 0x040001E3 RID: 483
898
899 // Token: 0x040001E4 RID: 484
900 private bool useNsHashtable;
901
902 // Token: 0x040001E5 RID: 485
904
905 // Token: 0x040001E6 RID: 486
906 private int elemTop;
907
908 // Token: 0x040001E7 RID: 487
910
911 // Token: 0x040001E8 RID: 488
912 private int attrCount;
913
914 // Token: 0x040001E9 RID: 489
916
917 // Token: 0x040001EA RID: 490
919
920 // Token: 0x040001EB RID: 491
922
923 // Token: 0x040001EC RID: 492
924 private string curDeclPrefix;
925
926 // Token: 0x040001ED RID: 493
928
929 // Token: 0x040001EE RID: 494
931
932 // Token: 0x040001EF RID: 495
933 private bool checkCharacters;
934
935 // Token: 0x040001F0 RID: 496
936 private bool omitDuplNamespaces;
937
938 // Token: 0x040001F1 RID: 497
940
941 // Token: 0x040001F2 RID: 498
943
944 // Token: 0x040001F3 RID: 499
945 private bool dtdWritten;
946
947 // Token: 0x040001F4 RID: 500
948 private bool xmlDeclFollows;
949
950 // Token: 0x040001F5 RID: 501
952
953 // Token: 0x040001F6 RID: 502
955
956 // Token: 0x040001F7 RID: 503
957 internal static readonly string[] stateName;
958
959 // Token: 0x040001F8 RID: 504
960 internal static readonly string[] tokenName;
961
962 // Token: 0x040001F9 RID: 505
963 private static WriteState[] state2WriteState;
964
965 // Token: 0x040001FA RID: 506
967
968 // Token: 0x040001FB RID: 507
970
971 // Token: 0x0200004F RID: 79
972 private enum State
973 {
974 // Token: 0x040001FD RID: 509
975 Start,
976 // Token: 0x040001FE RID: 510
977 TopLevel,
978 // Token: 0x040001FF RID: 511
979 Document,
980 // Token: 0x04000200 RID: 512
981 Element,
982 // Token: 0x04000201 RID: 513
983 Content,
984 // Token: 0x04000202 RID: 514
986 // Token: 0x04000203 RID: 515
988 // Token: 0x04000204 RID: 516
990 // Token: 0x04000205 RID: 517
991 Attribute,
992 // Token: 0x04000206 RID: 518
994 // Token: 0x04000207 RID: 519
996 // Token: 0x04000208 RID: 520
998 // Token: 0x04000209 RID: 521
1000 // Token: 0x0400020A RID: 522
1002 // Token: 0x0400020B RID: 523
1004 // Token: 0x0400020C RID: 524
1005 Closed,
1006 // Token: 0x0400020D RID: 525
1007 Error,
1008 // Token: 0x0400020E RID: 526
1009 StartContent = 101,
1010 // Token: 0x0400020F RID: 527
1012 // Token: 0x04000210 RID: 528
1014 // Token: 0x04000211 RID: 529
1015 StartDoc,
1016 // Token: 0x04000212 RID: 530
1017 StartDocEle = 106,
1018 // Token: 0x04000213 RID: 531
1020 // Token: 0x04000214 RID: 532
1022 // Token: 0x04000215 RID: 533
1024 // Token: 0x04000216 RID: 534
1025 EndAttrSAttr = 111,
1026 // Token: 0x04000217 RID: 535
1028 // Token: 0x04000218 RID: 536
1030 // Token: 0x04000219 RID: 537
1032 // Token: 0x0400021A RID: 538
1034 // Token: 0x0400021B RID: 539
1036 // Token: 0x0400021C RID: 540
1038 // Token: 0x0400021D RID: 541
1040 }
1041
1042 // Token: 0x02000050 RID: 80
1043 private enum Token
1044 {
1045 // Token: 0x0400021F RID: 543
1047 // Token: 0x04000220 RID: 544
1049 // Token: 0x04000221 RID: 545
1050 PI,
1051 // Token: 0x04000222 RID: 546
1052 Comment,
1053 // Token: 0x04000223 RID: 547
1054 Dtd,
1055 // Token: 0x04000224 RID: 548
1057 // Token: 0x04000225 RID: 549
1058 EndElement,
1059 // Token: 0x04000226 RID: 550
1061 // Token: 0x04000227 RID: 551
1063 // Token: 0x04000228 RID: 552
1064 Text,
1065 // Token: 0x04000229 RID: 553
1066 CData,
1067 // Token: 0x0400022A RID: 554
1069 // Token: 0x0400022B RID: 555
1070 Base64,
1071 // Token: 0x0400022C RID: 556
1072 RawData,
1073 // Token: 0x0400022D RID: 557
1075 }
1076
1077 // Token: 0x02000051 RID: 81
1079 {
1080 // Token: 0x060003FD RID: 1021 RVA: 0x000106B0 File Offset: 0x0000E8B0
1085
1086 // Token: 0x060003FE RID: 1022 RVA: 0x000106CC File Offset: 0x0000E8CC
1088 {
1089 return this.wfWriter.LookupNamespace(prefix);
1090 }
1091
1092 // Token: 0x060003FF RID: 1023 RVA: 0x000106E8 File Offset: 0x0000E8E8
1094 {
1095 /*
1096An exception occurred when decompiling this method (060003FF)
1097
1098ICSharpCode.Decompiler.DecompilerException: Error decompiling System.String System.Xml.XmlWellFormedWriter/NamespaceResolverProxy::System.Xml.IXmlNamespaceResolver.LookupPrefix(System.String)
1099
1100 ---> System.Exception: Basic block has to end with unconditional control flow.
1101{
1102 Block_0:
1103 stloc:XmlWellFormedWriter(var_0_06, ldfld:XmlWellFormedWriter(NamespaceResolverProxy::wfWriter, ldloc:NamespaceResolverProxy(this)))
1104}
1105
1106 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
1107 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
1108 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
1109 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
1110 --- End of inner exception stack trace ---
1111 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
1112 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
1113*/;
1114 }
1115
1116 // Token: 0x0400022E RID: 558
1118 }
1119
1120 // Token: 0x02000052 RID: 82
1121 private struct ElementScope
1122 {
1123 // Token: 0x06000400 RID: 1024 RVA: 0x000106FC File Offset: 0x0000E8FC
1124 internal void Set(string prefix, string localName, string namespaceUri, int prevNSTop)
1125 {
1130 }
1131
1132 // Token: 0x06000401 RID: 1025 RVA: 0x00010728 File Offset: 0x0000E928
1134 {
1135 string text = this.prefix;
1136 string text2 = this.localName;
1137 string text3 = this.namespaceUri;
1138 }
1139
1140 // Token: 0x06000402 RID: 1026 RVA: 0x0001074C File Offset: 0x0000E94C
1142 {
1143 string text = this.prefix;
1144 string text2 = this.localName;
1145 string text3 = this.namespaceUri;
1146 }
1147
1148 // Token: 0x0400022F RID: 559
1149 internal int prevNSTop;
1150
1151 // Token: 0x04000230 RID: 560
1152 internal string prefix;
1153
1154 // Token: 0x04000231 RID: 561
1155 internal string localName;
1156
1157 // Token: 0x04000232 RID: 562
1158 internal string namespaceUri;
1159
1160 // Token: 0x04000233 RID: 563
1162
1163 // Token: 0x04000234 RID: 564
1164 internal string xmlLang;
1165 }
1166
1167 // Token: 0x02000053 RID: 83
1168 private enum NamespaceKind
1169 {
1170 // Token: 0x04000236 RID: 566
1171 Written,
1172 // Token: 0x04000237 RID: 567
1174 // Token: 0x04000238 RID: 568
1175 Implied,
1176 // Token: 0x04000239 RID: 569
1177 Special
1178 }
1179
1180 // Token: 0x02000054 RID: 84
1181 private struct Namespace
1182 {
1183 // Token: 0x06000403 RID: 1027 RVA: 0x00010770 File Offset: 0x0000E970
1185 {
1188 this.kind = kind;
1189 }
1190
1191 // Token: 0x06000404 RID: 1028 RVA: 0x00010794 File Offset: 0x0000E994
1193 {
1194 if (rawWriter != null)
1195 {
1196 string text = this.namespaceUri;
1197 return;
1198 }
1199 }
1200
1201 // Token: 0x0400023A RID: 570
1202 internal string prefix;
1203
1204 // Token: 0x0400023B RID: 571
1205 internal string namespaceUri;
1206
1207 // Token: 0x0400023C RID: 572
1209
1210 // Token: 0x0400023D RID: 573
1211 internal int prevNsIndex;
1212 }
1213
1214 // Token: 0x02000055 RID: 85
1215 private struct AttrName
1216 {
1217 // Token: 0x06000405 RID: 1029 RVA: 0x000107B4 File Offset: 0x0000E9B4
1218 internal void Set(string prefix, string localName, string namespaceUri)
1219 {
1223 }
1224
1225 // Token: 0x06000406 RID: 1030 RVA: 0x000107D8 File Offset: 0x0000E9D8
1226 internal bool IsDuplicate(string prefix, string localName, string namespaceUri)
1227 {
1228 bool flag = this.localName == localName;
1229 return true;
1230 }
1231
1232 // Token: 0x0400023E RID: 574
1233 internal string prefix;
1234
1235 // Token: 0x0400023F RID: 575
1236 internal string namespaceUri;
1237
1238 // Token: 0x04000240 RID: 576
1239 internal string localName;
1240
1241 // Token: 0x04000241 RID: 577
1242 internal int prev;
1243 }
1244
1245 // Token: 0x02000056 RID: 86
1246 private enum SpecialAttribute
1247 {
1248 // Token: 0x04000243 RID: 579
1249 No,
1250 // Token: 0x04000244 RID: 580
1252 // Token: 0x04000245 RID: 581
1254 // Token: 0x04000246 RID: 582
1255 XmlSpace,
1256 // Token: 0x04000247 RID: 583
1257 XmlLang
1258 }
1259
1260 // Token: 0x02000057 RID: 87
1262 {
1263 // Token: 0x170000C7 RID: 199
1264 // (get) Token: 0x06000407 RID: 1031 RVA: 0x00010804 File Offset: 0x0000EA04
1265 internal string StringValue
1266 {
1267 get
1268 {
1269 /*
1270An exception occurred when decompiling this method (06000407)
1271
1272ICSharpCode.Decompiler.DecompilerException: Error decompiling System.String System.Xml.XmlWellFormedWriter/AttributeValueCache::get_StringValue()
1273
1274 ---> System.Exception: Basic block has to end with unconditional control flow.
1275{
1276 IL_000C:
1277 stloc:int32(var_1_12, ldfld:int32(string::_stringLength, ldloc:string(var_0_06)))
1278}
1279
1280 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
1281 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
1282 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
1283 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
1284 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
1285 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
1286 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
1287 --- End of inner exception stack trace ---
1288 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
1289 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
1290*/;
1291 }
1292 }
1293
1294 // Token: 0x06000408 RID: 1032 RVA: 0x00010824 File Offset: 0x0000EA24
1295 internal void WriteEntityRef(string name)
1296 {
1297 if (this.singleStringValue != null)
1298 {
1299 this.StartComplexValue();
1300 }
1301 bool flag = name == "lt";
1302 }
1303
1304 // Token: 0x06000409 RID: 1033 RVA: 0x0001089C File Offset: 0x0000EA9C
1305 internal void WriteCharEntity(char ch)
1306 {
1307 if (this.singleStringValue != null)
1308 {
1309 this.StartComplexValue();
1310 }
1311 StringBuilder stringBuilder = this.stringValue.Append(ch);
1312 }
1313
1314 // Token: 0x0600040A RID: 1034 RVA: 0x000108C4 File Offset: 0x0000EAC4
1316 {
1317 if (this.singleStringValue != null)
1318 {
1319 this.StartComplexValue();
1320 }
1321 StringBuilder stringBuilder = this.stringValue.Append(highChar);
1323 }
1324
1325 // Token: 0x0600040B RID: 1035 RVA: 0x000108FC File Offset: 0x0000EAFC
1326 internal void WriteWhitespace(string ws)
1327 {
1328 if (this.singleStringValue != null)
1329 {
1330 this.StartComplexValue();
1331 }
1332 StringBuilder stringBuilder = this.stringValue.Append(ws);
1334 }
1335
1336 // Token: 0x0600040C RID: 1036 RVA: 0x0001092C File Offset: 0x0000EB2C
1337 internal void WriteString(string text)
1338 {
1339 if (this.singleStringValue != null)
1340 {
1341 this.StartComplexValue();
1342 return;
1343 }
1344 int num = this.lastItem;
1345 StringBuilder stringBuilder = this.stringValue.Append(text);
1347 }
1348
1349 // Token: 0x0600040D RID: 1037 RVA: 0x0001096C File Offset: 0x0000EB6C
1350 internal void WriteChars(char[] buffer, int index, int count)
1351 {
1352 if (this.singleStringValue != null)
1353 {
1354 this.StartComplexValue();
1355 }
1356 StringBuilder stringBuilder = this.stringValue.Append(buffer, index, count);
1357 }
1358
1359 // Token: 0x0600040E RID: 1038 RVA: 0x00010998 File Offset: 0x0000EB98
1360 internal void WriteRaw(char[] buffer, int index, int count)
1361 {
1362 if (this.singleStringValue != null)
1363 {
1364 this.StartComplexValue();
1365 }
1366 StringBuilder stringBuilder = this.stringValue.Append(buffer, index, count);
1367 }
1368
1369 // Token: 0x0600040F RID: 1039 RVA: 0x000109C4 File Offset: 0x0000EBC4
1370 internal void WriteRaw(string data)
1371 {
1372 if (this.singleStringValue != null)
1373 {
1374 this.StartComplexValue();
1375 }
1376 StringBuilder stringBuilder = this.stringValue.Append(data);
1378 }
1379
1380 // Token: 0x06000410 RID: 1040 RVA: 0x000109F4 File Offset: 0x0000EBF4
1381 internal void WriteValue(string value)
1382 {
1383 if (this.singleStringValue != null)
1384 {
1385 this.StartComplexValue();
1386 }
1387 StringBuilder stringBuilder = this.stringValue.Append(value);
1389 }
1390
1391 // Token: 0x06000411 RID: 1041 RVA: 0x00010A24 File Offset: 0x0000EC24
1392 internal void Replay(XmlWriter writer)
1393 {
1394 if (this.singleStringValue != null)
1395 {
1396 return;
1397 }
1398 int num = this.firstItem;
1401 }
1402
1403 // Token: 0x06000412 RID: 1042 RVA: 0x00010A78 File Offset: 0x0000EC78
1404 internal void Trim()
1405 {
1406 int num = 1;
1407 string text = this.singleStringValue;
1408 if (text != null)
1409 {
1410 if (num == 0)
1411 {
1412 }
1413 string text2 = XmlConvert.TrimString(text);
1414 this.singleStringValue = text2;
1415 return;
1416 }
1417 StringBuilder stringBuilder = this.stringValue;
1418 XmlCharType instance = XmlCharType.Instance;
1419 int num2 = this.firstItem;
1420 int num3 = this.lastItem;
1422 string text3;
1423 if (text3 != null)
1424 {
1425 }
1426 int stringLength = text3._stringLength;
1427 }
1428
1429 // Token: 0x06000413 RID: 1043 RVA: 0x00010B78 File Offset: 0x0000ED78
1430 internal void Clear()
1431 {
1432 StringBuilder stringBuilder = this.stringValue;
1433 long num = 0L;
1434 stringBuilder.Length = (int)num;
1435 }
1436
1437 // Token: 0x06000414 RID: 1044 RVA: 0x00010B98 File Offset: 0x0000ED98
1438 private void StartComplexValue()
1439 {
1440 StringBuilder stringBuilder = this.stringValue;
1441 string text = this.singleStringValue;
1442 StringBuilder stringBuilder2 = stringBuilder.Append(text);
1443 string text2 = this.singleStringValue;
1445 }
1446
1447 // Token: 0x06000415 RID: 1045 RVA: 0x00010BCC File Offset: 0x0000EDCC
1449 {
1450 int num = this.lastItem;
1453 if (array != null)
1454 {
1455 object data2 = array.data;
1456 array2 = this.items;
1457 return;
1458 }
1459 if (array2 == null)
1460 {
1462 }
1463 }
1464
1465 // Token: 0x06000416 RID: 1046 RVA: 0x00010C10 File Offset: 0x0000EE10
1467 {
1468 }
1469
1470 // Token: 0x04000248 RID: 584
1472
1473 // Token: 0x04000249 RID: 585
1474 private string singleStringValue;
1475
1476 // Token: 0x0400024A RID: 586
1478
1479 // Token: 0x0400024B RID: 587
1480 private int firstItem;
1481
1482 // Token: 0x0400024C RID: 588
1483 private int lastItem = 1;
1484
1485 // Token: 0x02000058 RID: 88
1486 private enum ItemType
1487 {
1488 // Token: 0x0400024E RID: 590
1489 EntityRef,
1490 // Token: 0x0400024F RID: 591
1491 CharEntity,
1492 // Token: 0x04000250 RID: 592
1494 // Token: 0x04000251 RID: 593
1495 Whitespace,
1496 // Token: 0x04000252 RID: 594
1497 String,
1498 // Token: 0x04000253 RID: 595
1500 // Token: 0x04000254 RID: 596
1501 Raw,
1502 // Token: 0x04000255 RID: 597
1503 RawChars,
1504 // Token: 0x04000256 RID: 598
1506 }
1507
1508 // Token: 0x02000059 RID: 89
1509 private class Item
1510 {
1511 // Token: 0x06000417 RID: 1047 RVA: 0x00010C2A File Offset: 0x0000EE2A
1512 internal Item()
1513 {
1514 }
1515
1516 // Token: 0x06000418 RID: 1048 RVA: 0x00010C2A File Offset: 0x0000EE2A
1518 {
1519 }
1520
1521 // Token: 0x04000257 RID: 599
1523
1524 // Token: 0x04000258 RID: 600
1525 internal object data;
1526 }
1527
1528 // Token: 0x0200005A RID: 90
1529 private class BufferChunk
1530 {
1531 // Token: 0x06000419 RID: 1049 RVA: 0x00010C2A File Offset: 0x0000EE2A
1532 internal BufferChunk(char[] buffer, int index, int count)
1533 {
1534 }
1535
1536 // Token: 0x04000259 RID: 601
1537 internal char[] buffer;
1538
1539 // Token: 0x0400025A RID: 602
1540 internal int index;
1541
1542 // Token: 0x0400025B RID: 603
1543 internal int count;
1544 }
1545 }
1546 }
1547}
class f__AnonymousType0<< Count > j__TPar
static CultureInfo InvariantCulture
StringBuilder Append(char value, int repeatCount)
static void Encode(byte[] buffer, int index, int count, XmlWriter writer)
static string GetString(string name)
Definition Res.cs:10
static string TrimString(string value)
void Set(XmlWellFormedWriter.AttributeValueCache.ItemType type, object data)
XmlWellFormedWriter.AttributeValueCache.ItemType type
void WriteRaw(char[] buffer, int index, int count)
XmlWellFormedWriter.AttributeValueCache.Item[] items
void AddItem(XmlWellFormedWriter.AttributeValueCache.ItemType type, object data)
void WriteChars(char[] buffer, int index, int count)
void WriteSurrogateCharEntity(char lowChar, char highChar)
override void WriteCharEntity(char ch)
void AddAttribute(string prefix, string localName, string namespaceName)
XmlWellFormedWriter.State currentState
void PopNamespaces(int indexFrom, int indexTo)
string LookupNamespace(string prefix)
override void WriteString(string text)
XmlWellFormedWriter.ElementScope[] elemScopeStack
override void WriteWhitespace(string ws)
override void WriteStartAttribute(string prefix, string localName, string namespaceName)
override void WriteComment(string text)
IXmlNamespaceResolver predefinedNamespaces
Dictionary< string, int > nsHashtable
override void WriteBase64(byte[] buffer, int index, int count)
static readonly XmlWellFormedWriter.State[] StateTableDocument
override void WriteValue(string value)
void ThrowInvalidStateTransition(XmlWellFormedWriter.Token token, XmlWellFormedWriter.State currentState)
override void WriteStartDocument(bool standalone)
override void WriteStartElement(string prefix, string localName, string ns)
void SetSpecialAttribute(XmlWellFormedWriter.SpecialAttribute special)
override void WriteProcessingInstruction(string name, string text)
void WriteStartDocumentImpl(XmlStandalone standalone)
bool PushNamespaceExplicit(string prefix, string ns)
override void WriteEntityRef(string name)
XmlWellFormedWriter.SpecialAttribute specAttr
override void WriteChars(char[] buffer, int index, int count)
void PushNamespaceImplicit(string prefix, string ns)
XmlWellFormedWriter.AttributeValueCache attrValueCache
static string GetStateName(XmlWellFormedWriter.State state)
static readonly string[] tokenName
XmlWellFormedWriter.State[] stateTable
string LookupLocalNamespace(string prefix)
override void WriteRaw(string data)
XmlWellFormedWriter.Namespace[] nsStack
Dictionary< string, int > attrHashTable
static Exception InvalidCharsException(string name, int badCharIndex)
override void WriteBinHex(byte[] buffer, int index, int count)
void AddToAttrHashTable(int attributeIndex)
static readonly string[] stateName
static XmlException DupAttrException(string prefix, string localName)
override void WriteDocType(string name, string pubid, string sysid, string subset)
void AddNamespace(string prefix, string ns, XmlWellFormedWriter.NamespaceKind kind)
void AddToNamespaceHashtable(int namespaceIndex)
override void WriteRaw(char[] buffer, int index, int count)
XmlWellFormedWriter.AttrName[] attrStack
static readonly XmlWellFormedWriter.State[] StateTableAuto
override string LookupPrefix(string ns)
XmlWellFormedWriter(XmlWriter writer, XmlWriterSettings settings)
void AdvanceState(XmlWellFormedWriter.Token token)
override void WriteSurrogateCharEntity(char lowChar, char highChar)
override void WriteCData(string text)
string LookupNamespace(string prefix)
string LookupPrefix(string namespaceName)
static XmlCharType Instance
void Set(string prefix, string localName, string namespaceUri)
bool IsDuplicate(string prefix, string localName, string namespaceUri)
void Set(string prefix, string localName, string namespaceUri, int prevNSTop)
void Set(string prefix, string namespaceUri, XmlWellFormedWriter.NamespaceKind kind)
void WriteDecl(XmlWriter writer, XmlRawWriter rawWriter)
XmlWellFormedWriter.NamespaceKind kind