599 references to WriteLine
System.Xml (599)
System\Xml\Serialization\Compilation.cs (9)
324
writer.
WriteLine
("#if _DYNAMIC_XMLSERIALIZER_COMPILATION");
325
writer.
WriteLine
("[assembly:System.Security.AllowPartiallyTrustedCallers()]");
326
writer.
WriteLine
("[assembly:System.Security.SecurityTransparent()]");
327
writer.
WriteLine
("[assembly:System.Security.SecurityRules(System.Security.SecurityRuleSet.Level1)]");
328
writer.
WriteLine
("#endif");
331
writer.
WriteLine
("[assembly:System.Reflection.AssemblyVersionAttribute(\"" + types[0].Assembly.GetName().Version.ToString() + "\")]");
353
writer.
WriteLine
(")]");
366
writer.
WriteLine
("namespace " + GeneratedAssemblyNamespace + " {");
405
writer.
WriteLine
("}");
System\Xml\Serialization\XmlSerializationGeneratedCode.cs (44)
122
writer.
WriteLine
(" = null;");
128
writer.
WriteLine
(" {");
131
writer.
WriteLine
("get {");
136
writer.
WriteLine
(" == null) {");
142
writer.
WriteLine
("();");
151
writer.
WriteLine
(" = _tmp;");
153
writer.
WriteLine
("}");
157
writer.
WriteLine
(";");
159
writer.
WriteLine
("}");
162
writer.
WriteLine
("}");
174
writer.
WriteLine
(";");
185
writer.
WriteLine
(" type) {");
204
writer.
WriteLine
(")) return true;");
206
writer.
WriteLine
("return false;");
208
writer.
WriteLine
("}");
220
writer.
WriteLine
(" {");
225
writer.
WriteLine
(" CreateReader() {");
229
writer.
WriteLine
("();");
231
writer.
WriteLine
("}");
235
writer.
WriteLine
(" CreateWriter() {");
239
writer.
WriteLine
("();");
241
writer.
WriteLine
("}");
244
writer.
WriteLine
("}");
258
writer.
WriteLine
(" {");
266
writer.
WriteLine
(" xmlReader) {");
270
writer.
WriteLine
("return true;");
277
writer.
WriteLine
(");");
280
writer.
WriteLine
("}");
286
writer.
WriteLine
(" writer) {");
296
writer.
WriteLine
("objectToSerialize);");
298
writer.
WriteLine
("}");
304
writer.
WriteLine
(" reader) {");
310
writer.
WriteLine
("();");
312
writer.
WriteLine
("}");
315
writer.
WriteLine
("}");
329
writer.
WriteLine
("());");
340
writer.
WriteLine
(" type) {");
358
writer.
WriteLine
("();");
361
writer.
WriteLine
("return null;");
363
writer.
WriteLine
("}");
370
writer.
WriteLine
(" {");
377
writer.
WriteLine
("(); } }");
383
writer.
WriteLine
("(); } }");
392
writer.
WriteLine
("}");
System\Xml\Serialization\XmlSerializationReader.cs (333)
2124
Writer.
WriteLine
(" {");
2180
Writer.
WriteLine
(";");
2184
Writer.
WriteLine
("protected override void InitIDs() {");
2192
Writer.
WriteLine
(");");
2195
Writer.
WriteLine
("}");
2198
Writer.
WriteLine
("}");
2219
Writer.
WriteLine
(")) {");
2225
Writer.
WriteLine
("else {");
2238
Writer.
WriteLine
(");");
2241
Writer.
WriteLine
("}");
2247
Writer.
WriteLine
("protected override void InitCallbacks() {");
2276
Writer.
WriteLine
("));");
2282
Writer.
WriteLine
("}");
2288
Writer.
WriteLine
("() {");
2290
Writer.
WriteLine
("// dummy array method");
2291
Writer.
WriteLine
("UnknownNode(null);");
2292
Writer.
WriteLine
("return null;");
2294
Writer.
WriteLine
("}");
2338
Writer.
WriteLine
("() {");
2340
Writer.
WriteLine
("Reader.MoveToContent();");
2344
Writer.
WriteLine
("];");
2418
if (members.Length > 0 && members[0].Mapping.IsReturnValue) Writer.
WriteLine
("IsReturnValue = true;");
2427
Writer.
WriteLine
("Reader.MoveToElement();");
2433
Writer.
WriteLine
("if (Reader.IsEmptyElement) { Reader.Skip(); Reader.MoveToContent(); continue; }");
2434
Writer.
WriteLine
("Reader.ReadStartElement();");
2437
Writer.
WriteLine
("int state = 0;");
2445
Writer.
WriteLine
("Reader.MoveToContent();");
2451
Writer.
WriteLine
("ReadEndElement();");
2454
Writer.
WriteLine
("}");
2458
Writer.
WriteLine
("Reader.MoveToContent();");
2462
Writer.
WriteLine
("return p;");
2464
Writer.
WriteLine
("}");
2484
Writer.
WriteLine
(";");
2498
Writer.
WriteLine
("() {");
2501
Writer.
WriteLine
("Reader.MoveToContent();");
2505
Writer.
WriteLine
("];");
2514
Writer.
WriteLine
(") throw CreateUnknownNodeException();");
2516
Writer.
WriteLine
("bool isEmptyWrapper = Reader.IsEmptyElement;");
2517
Writer.
WriteLine
("Reader.ReadStartElement();");
2548
if (members.Length > 0 && members[0].Mapping.IsReturnValue) Writer.
WriteLine
("IsReturnValue = true;");
2560
Writer.
WriteLine
("Reader.MoveToContent();");
2565
Writer.
WriteLine
("if (!isEmptyWrapper) ReadEndElement();");
2570
Writer.
WriteLine
("ReadReferencedElements();");
2571
Writer.
WriteLine
("return p;");
2574
Writer.
WriteLine
("}");
2595
Writer.
WriteLine
(";");
2597
Writer.
WriteLine
("for (int i = 0; i < ci.Length; i++) {");
2609
if (useReflection) Writer.
WriteLine
("}");
2610
Writer.
WriteLine
(");");
2612
Writer.
WriteLine
("}");
2622
Writer.
WriteLine
("() {");
2624
Writer.
WriteLine
("object o = null;");
2630
Writer.
WriteLine
("Reader.MoveToContent();");
2634
Writer.
WriteLine
("Referenced(o);");
2635
Writer.
WriteLine
("ReadReferencedElements();");
2637
Writer.
WriteLine
("return (object)o;");
2639
Writer.
WriteLine
("}");
2723
Writer.
WriteLine
(";");
2730
Writer.
WriteLine
(" {");
2733
Writer.
WriteLine
("get {");
2738
Writer.
WriteLine
(" == null) {");
2744
Writer.
WriteLine
("();");
2763
Writer.
WriteLine
(");");
2767
Writer.
WriteLine
(" = h;");
2770
Writer.
WriteLine
("}");
2774
Writer.
WriteLine
(";");
2777
Writer.
WriteLine
("}");
2780
Writer.
WriteLine
("}");
2799
Writer.
WriteLine
("() {");
2801
Writer.
WriteLine
("string s = Reader.ReadElementString();");
2807
Writer.
WriteLine
("(string s) {");
2822
Writer.
WriteLine
("));");
2831
Writer.
WriteLine
(");");
2835
Writer.
WriteLine
("switch (s) {");
2847
Writer.
WriteLine
(";");
2854
Writer.
WriteLine
(");");
2856
Writer.
WriteLine
("}");
2860
Writer.
WriteLine
("}");
2868
Writer.
WriteLine
(")");
2884
Writer.
WriteLine
("false);");
2901
Writer.
WriteLine
(") {");
2903
Writer.
WriteLine
("Reader.ReadStartElement();");
2911
Writer.
WriteLine
("(CollapseWhitespace(Reader.ReadString()));");
2912
Writer.
WriteLine
("ReadEndElement();");
2913
Writer.
WriteLine
("return e;");
2915
Writer.
WriteLine
("}");
2922
Writer.
WriteLine
(") {");
2942
Writer.
WriteLine
(";");
2945
Writer.
WriteLine
("null;");
2948
Writer.
WriteLine
("return a;");
2950
Writer.
WriteLine
("}");
2966
Writer.
WriteLine
("(bool checkType) {");
2980
Writer.
WriteLine
(";");
2982
Writer.
WriteLine
("if (ReadNull())");
2985
Writer.
WriteLine
("return o;");
2994
Writer.
WriteLine
("return o;");
2997
Writer.
WriteLine
("}");
3018
Writer.
WriteLine
("bool checkType) {");
3022
Writer.
WriteLine
(" xsiType = checkType ? GetXsiType() : null;");
3023
Writer.
WriteLine
("bool isNull = false;");
3025
Writer.
WriteLine
("if (isNullable) isNull = ReadNull();");
3027
Writer.
WriteLine
("if (checkType) {");
3030
Writer.
WriteLine
("if (isNull) {");
3032
Writer.
WriteLine
("if (xsiType != null) return (" + typeName + ")ReadTypedNull(xsiType);");
3036
Writer.
WriteLine
(";");
3039
Writer.
WriteLine
("null;");
3042
Writer.
WriteLine
("}");
3049
Writer.
WriteLine
(") {");
3052
Writer.
WriteLine
("return ReadTypedPrimitive(new System.Xml.XmlQualifiedName(\"" + Soap.UrType + "\", \"" + XmlSchema.Namespace + "\"));");
3055
Writer.
WriteLine
("}");
3058
Writer.
WriteLine
("else");
3065
Writer.
WriteLine
(")xsiType);");
3067
Writer.
WriteLine
("}");
3070
Writer.
WriteLine
("if (isNull) return null;");
3077
Writer.
WriteLine
(");");
3081
Writer.
WriteLine
("DecodeName = false;");
3160
Writer.
WriteLine
("Reader.MoveToElement();");
3162
Writer.
WriteLine
("if (Reader.IsEmptyElement) {");
3164
Writer.
WriteLine
("Reader.Skip();");
3166
Writer.
WriteLine
("return o;");
3168
Writer.
WriteLine
("}");
3170
Writer.
WriteLine
("Reader.ReadStartElement();");
3172
Writer.
WriteLine
("int state = 0;");
3178
Writer.
WriteLine
("Reader.MoveToContent();");
3183
Writer.
WriteLine
("ReadEndElement();");
3184
Writer.
WriteLine
("return o;");
3187
Writer.
WriteLine
("}");
3200
Writer.
WriteLine
(") {");
3212
Writer.
WriteLine
(");");
3241
Writer.
WriteLine
("Reader.MoveToElement();");
3243
Writer.
WriteLine
("if (Reader.IsEmptyElement) { Reader.Skip(); return o; }");
3244
Writer.
WriteLine
("Reader.ReadStartElement();");
3250
Writer.
WriteLine
("Reader.MoveToContent();");
3254
Writer.
WriteLine
("ReadEndElement();");
3255
Writer.
WriteLine
("return o;");
3258
Writer.
WriteLine
("}");
3267
Writer.
WriteLine
("(object objFixup) {");
3269
Writer.
WriteLine
("Fixup fixup = (Fixup)objFixup;");
3271
Writer.
WriteLine
("string[] ids = fixup.Ids;");
3279
Writer.
WriteLine
("] != null) {");
3291
Writer.
WriteLine
("try {");
3300
Writer.
WriteLine
(";");
3304
Writer.
WriteLine
(" = true;");
3312
Writer.
WriteLine
("}");
3316
Writer.
WriteLine
("}");
3320
Writer.
WriteLine
("// get array of the collection items");
3331
Writer.
WriteLine
(") == null) {");
3337
Writer.
WriteLine
(");");
3343
Writer.
WriteLine
(";");
3347
Writer.
WriteLine
("}");
3358
Writer.
WriteLine
(");");
3359
Writer.
WriteLine
("AddFixup(collectionFixup);");
3365
Writer.
WriteLine
("(object collection, object collectionItems) {");
3368
Writer.
WriteLine
("if (collectionItems == null) return;");
3369
Writer.
WriteLine
("if (collection == null) return;");
3379
Writer.
WriteLine
("}");
3433
Writer.
WriteLine
("while (Reader.MoveToNextAttribute()) {");
3466
Writer.
WriteLine
(") {");
3471
Writer.
WriteLine
("}");
3478
Writer.
WriteLine
("if (IsXmlnsAttribute(Reader.Name)) {");
3487
Writer.
WriteLine
("();");
3491
Writer.
WriteLine
(".Add(Reader.Name.Length == 5 ? \"\" : Reader.LocalName, Reader.Value);");
3494
Writer.
WriteLine
("}");
3496
Writer.
WriteLine
("else {");
3500
Writer.
WriteLine
("if (!IsXmlnsAttribute(Reader.Name)) {");
3508
Writer.
WriteLine
(") Document.ReadNode(Reader);");
3509
Writer.
WriteLine
("ParseWsdlArrayType(attr);");
3528
Writer.
WriteLine
(");");
3531
Writer.
WriteLine
("}");
3534
Writer.
WriteLine
("}");
3548
Writer.
WriteLine
(";");
3553
Writer.
WriteLine
(") {");
3560
Writer.
WriteLine
(";");
3562
Writer.
WriteLine
("}");
3569
Writer.
WriteLine
("string listValues = Reader.Value;");
3570
Writer.
WriteLine
("string[] vals = listValues.Split(null);");
3571
Writer.
WriteLine
("for (int i = 0; i < vals.Length; i++) {");
3579
Writer.
WriteLine
(";");
3581
Writer.
WriteLine
("}");
3587
Writer.
WriteLine
(";");
3592
Writer.
WriteLine
(" = true;");
3596
Writer.
WriteLine
(" = true;");
3624
Writer.
WriteLine
(");");
3625
Writer.
WriteLine
("AddFixup(fixup);");
3648
Writer.
WriteLine
(" = 0;");
3656
Writer.
WriteLine
(" = 0;");
3667
Writer.
WriteLine
("});");
3669
Writer.
WriteLine
(");");
3680
Writer.
WriteLine
(");");
3686
Writer.
WriteLine
(";");
3732
Writer.
WriteLine
("string tmp = null;");
3737
Writer.
WriteLine
(".Element) {");
3749
Writer.
WriteLine
("}");
3754
Writer.
WriteLine
("else {");
3756
Writer.
WriteLine
(elseString);
3758
Writer.
WriteLine
("}");
3764
Writer.
WriteLine
(".Text || ");
3767
Writer.
WriteLine
(".CDATA || ");
3770
Writer.
WriteLine
(".Whitespace || ");
3773
Writer.
WriteLine
(".SignificantWhitespace) {");
3781
Writer.
WriteLine
(";");
3784
Writer.
WriteLine
("}");
3817
Writer.
WriteLine
("true);");
3819
Writer.
WriteLine
("false);");
3832
Writer.
WriteLine
(";");
3836
Writer.
WriteLine
("string refElemId = null;");
3837
Writer.
WriteLine
("object refElem = ReadReferencingElement(null, null, true, out refElemId);");
3839
Writer.
WriteLine
("if (refElemId != null) {");
3842
Writer.
WriteLine
(".Add(refElemId);");
3844
Writer.
WriteLine
("IsObject.Add(false);");
3846
Writer.
WriteLine
("}");
3847
Writer.
WriteLine
("else if (refElem != null) {");
3850
Writer.
WriteLine
(".Add(refElem);");
3852
Writer.
WriteLine
("IsObject.Add(true);");
3854
Writer.
WriteLine
("}");
3869
Writer.
WriteLine
(elementElseString);
3887
Writer.
WriteLine
("switch (state) {");
3914
Writer.
WriteLine
(":");
3949
Writer.
WriteLine
(") {");
3955
Writer.
WriteLine
(" != null) {");
3968
Writer.
WriteLine
(";");
3971
Writer.
WriteLine
("}");
3978
Writer.
WriteLine
("Id;");
3985
Writer.
WriteLine
("IsReturnValue = false;");
3988
Writer.
WriteLine
(" = true;");
3991
Writer.
WriteLine
("}");
3995
Writer.
WriteLine
("else {");
4001
Writer.
WriteLine
(";");
4004
Writer.
WriteLine
("}");
4006
Writer.
WriteLine
("break;");
4012
Writer.
WriteLine
("default:");
4014
Writer.
WriteLine
("else {");
4020
Writer.
WriteLine
("break;");
4023
Writer.
WriteLine
("}");
4095
Writer.
WriteLine
(";");
4116
Writer.
WriteLine
(";");
4124
Writer.
WriteLine
(";");
4168
Writer.
WriteLine
(");");
4172
Writer.
WriteLine
("if (rre != null) {");
4176
Writer.
WriteLine
("}");
4179
Writer.
WriteLine
("try {");
4184
Writer.
WriteLine
(";");
4189
Writer.
WriteLine
("if (!ReadNull()) {");
4210
Writer.
WriteLine
("(Reader.IsEmptyElement)) {");
4212
Writer.
WriteLine
("Reader.Skip();");
4214
Writer.
WriteLine
("}");
4215
Writer.
WriteLine
("else {");
4218
Writer.
WriteLine
("Reader.ReadStartElement();");
4224
Writer.
WriteLine
("Reader.MoveToContent();");
4228
Writer.
WriteLine
("ReadEndElement();");
4229
Writer.
WriteLine
("}");
4234
Writer.
WriteLine
("}");
4236
Writer.
WriteLine
("else {");
4242
Writer.
WriteLine
("}");
4250
Writer.
WriteLine
(" = true;");
4266
Writer.
WriteLine
(";");
4270
Writer.
WriteLine
("if (ReadNull()) {");
4280
Writer.
WriteLine
(";");
4282
Writer.
WriteLine
("}");
4286
Writer.
WriteLine
("if (Reader.IsEmptyElement) {");
4288
Writer.
WriteLine
("Reader.Skip();");
4290
Writer.
WriteLine
("}");
4291
Writer.
WriteLine
("else {");
4294
Writer.
WriteLine
("{");
4301
Writer.
WriteLine
("if (Reader.IsEmptyElement) {");
4303
Writer.
WriteLine
("Reader.Skip();");
4307
Writer.
WriteLine
(";");
4309
Writer.
WriteLine
("}");
4310
Writer.
WriteLine
("else {");
4315
Writer.
WriteLine
(";");
4317
Writer.
WriteLine
("}");
4339
Writer.
WriteLine
(";");
4343
Writer.
WriteLine
("}");
4362
Writer.
WriteLine
(";");
4365
Writer.
WriteLine
("if (rre != null) {");
4369
Writer.
WriteLine
("try {");
4374
Writer.
WriteLine
(";");
4378
Writer.
WriteLine
(");");
4381
Writer.
WriteLine
("}");
4406
Writer.
WriteLine
(";");
4419
Writer.
WriteLine
(";");
4426
Writer.
WriteLine
(" tser = GetXsiType();");
4431
Writer.
WriteLine
(") {");
4441
Writer.
WriteLine
(", true");
4445
Writer.
WriteLine
(";");
4448
Writer.
WriteLine
("}");
4471
Writer.
WriteLine
(";");
4483
Writer.
WriteLine
(") {");
4494
Writer.
WriteLine
(", true");
4498
Writer.
WriteLine
(";");
4513
Writer.
WriteLine
(");");
4517
Writer.
WriteLine
("// " + "missing real mapping for " + derived.XsiType);
4524
Writer.
WriteLine
(");");
4528
Writer.
WriteLine
("}");
4536
Writer.
WriteLine
("Reader.MoveToContent();");
4542
Writer.
WriteLine
(".None) {");
4550
Writer.
WriteLine
("}");
4555
Writer.
WriteLine
(String.Format(CultureInfo.InvariantCulture, "int whileIterations{0} = 0;", nextWhileLoopIndex));
4556
Writer.
WriteLine
(String.Format(CultureInfo.InvariantCulture, "int readerCount{0} = ReaderCount;", nextWhileLoopIndex));
4562
Writer.
WriteLine
(String.Format(CultureInfo.InvariantCulture, "CheckReaderCount(ref whileIterations{0}, ref readerCount{1});", loopIndex, loopIndex));
4568
Writer.
WriteLine
("];");
4572
Writer.
WriteLine
("Reader.MoveToContent();");
4576
Writer.
WriteLine
(".Element) {");
4580
Writer.
WriteLine
("\");");
4583
Writer.
WriteLine
(".ToBoolean(root)) break;");
4584
Writer.
WriteLine
("ReadReferencedElement();");
4585
Writer.
WriteLine
("Reader.MoveToContent();");
4599
Writer.
WriteLine
("();");
4606
Writer.
WriteLine
("();");
4610
Writer.
WriteLine
("int isObjectIndex = 0;");
4613
Writer.
WriteLine
(") {");
4615
Writer.
WriteLine
("bool isReferenced = true;");
4618
Writer.
WriteLine
("IsObject[isObjectIndex++];");
4619
Writer.
WriteLine
("object refObj = isObject ? obj : GetTarget((string)obj);");
4620
Writer.
WriteLine
("if (refObj == null) continue;");
4622
Writer.
WriteLine
(" refObjType = refObj.GetType();");
4623
Writer.
WriteLine
("string refObjId = null;");
4627
Writer.
WriteLine
("if (isObject && isReferenced) Referenced(refObj); // need to mark this obj as ref'd since we didn't do GetTarget");
4629
Writer.
WriteLine
("}");
4635
Writer.
WriteLine
("\") == \"0\") {");
4637
Writer.
WriteLine
(source);
4639
Writer.
WriteLine
("}");
4650
Writer.
WriteLine
(";");
4653
Writer.
WriteLine
("try {");
4659
Writer.
WriteLine
(";");
4665
Writer.
WriteLine
(");");
4672
Writer.
WriteLine
(");");
4675
Writer.
WriteLine
("}");
4681
Writer.
WriteLine
("}");
4684
Writer.
WriteLine
(") {");
4695
Writer.
WriteLine
(", null);");
4699
Writer.
WriteLine
(");");
4702
Writer.
WriteLine
("}");
System\Xml\Serialization\XmlSerializationWriter.cs (213)
1315
Writer.
WriteLine
(" {");
1357
Writer.
WriteLine
("}");
1375
Writer.
WriteLine
("protected override void InitCallbacks() {");
1395
Writer.
WriteLine
("));");
1400
Writer.
WriteLine
("}");
1407
Writer.
WriteLine
(" {");
1429
Writer.
WriteLine
(");");
1433
Writer.
WriteLine
("}");
1497
Writer.
WriteLine
(" | ");
1510
Writer.
WriteLine
(" {");
1537
Writer.
WriteLine
(");");
1541
Writer.
WriteLine
("}");
1556
Writer.
WriteLine
(");");
1575
Writer.
WriteLine
(");");
1583
Writer.
WriteLine
("WriteEndElement();");
1588
Writer.
WriteLine
(");");
1613
Writer.
WriteLine
("(object[] p) {");
1616
Writer.
WriteLine
("WriteStartDocument();");
1619
Writer.
WriteLine
("TopLevelElement();");
1625
Writer.
WriteLine
("int pLength = p.Length;");
1637
Writer.
WriteLine
(") {");
1641
Writer.
WriteLine
("}");
1665
Writer.
WriteLine
(") {");
1673
Writer.
WriteLine
(") {");
1681
Writer.
WriteLine
("}");
1685
Writer.
WriteLine
("}");
1713
Writer.
WriteLine
(") {");
1721
Writer.
WriteLine
(") {");
1750
Writer.
WriteLine
(");");
1758
Writer.
WriteLine
("}");
1762
Writer.
WriteLine
("}");
1773
Writer.
WriteLine
(") {");
1779
Writer.
WriteLine
("}");
1781
Writer.
WriteLine
("WriteReferencedElements();");
1784
Writer.
WriteLine
("}");
1795
Writer.
WriteLine
("(object o) {");
1798
Writer.
WriteLine
("WriteStartDocument();");
1800
Writer.
WriteLine
("if (o == null) {");
1810
Writer.
WriteLine
("return;");
1812
Writer.
WriteLine
("}");
1815
Writer.
WriteLine
("TopLevelElement();");
1821
Writer.
WriteLine
("WriteReferencedElements();");
1824
Writer.
WriteLine
("}");
1839
Writer.
WriteLine
("(object e) {");
1847
Writer.
WriteLine
(" v) {");
1850
Writer.
WriteLine
("string s = null;");
1856
Writer.
WriteLine
("switch ("+RaCodeGen.GetStringForEnumLongValue("v", mapping.TypeDesc.UseReflection)+" ){");
1858
Writer.
WriteLine
("switch (v) {");
1866
Writer.
WriteLine
("; break;");
1880
Writer.
WriteLine
(", ");
1890
Writer.
WriteLine
(", ");
1904
Writer.
WriteLine
("); break;");
1911
Writer.
WriteLine
(");");
1914
Writer.
WriteLine
("}");
1921
Writer.
WriteLine
(");");
1922
Writer.
WriteLine
("Writer.WriteString(s);");
1925
Writer.
WriteLine
("return s;");
1928
Writer.
WriteLine
("}");
1936
Writer.
WriteLine
(") {");
1953
Writer.
WriteLine
(");");
1954
Writer.
WriteLine
("return;");
1956
Writer.
WriteLine
("}");
1970
Writer.
WriteLine
(") {");
1979
Writer.
WriteLine
("Writer.WriteStartElement(n, ns);");
1984
Writer.
WriteLine
(");");
1989
Writer.
WriteLine
("o));");
1990
Writer.
WriteLine
("Writer.WriteEndElement();");
1991
Writer.
WriteLine
("return;");
1993
Writer.
WriteLine
("}");
2004
Writer.
WriteLine
(") {");
2007
Writer.
WriteLine
("Writer.WriteStartElement(n, ns);");
2012
Writer.
WriteLine
(");");
2016
Writer.
WriteLine
("Writer.WriteEndElement();");
2017
Writer.
WriteLine
("return;");
2019
Writer.
WriteLine
("}");
2036
Writer.
WriteLine
("(object s) {");
2046
Writer.
WriteLine
(", bool needType) {");
2049
Writer.
WriteLine
("if ((object)o == null) {");
2051
Writer.
WriteLine
("if (isNullable) WriteNullTagLiteral(n, ns);");
2052
Writer.
WriteLine
("return;");
2054
Writer.
WriteLine
("}");
2056
Writer.
WriteLine
("if (!needType) {");
2060
Writer.
WriteLine
(" t = o.GetType();");
2063
Writer.
WriteLine
(") {");
2064
Writer.
WriteLine
("}");
2068
Writer.
WriteLine
("else {");
2072
Writer.
WriteLine
("WriteTypedPrimitive(n, ns, o, true);");
2073
Writer.
WriteLine
("return;");
2076
Writer.
WriteLine
("throw CreateUnknownTypeException(o);");
2079
Writer.
WriteLine
("}");
2081
Writer.
WriteLine
("}");
2086
Writer.
WriteLine
("EscapeName = false;");
2108
Writer.
WriteLine
(");");
2114
Writer.
WriteLine
(");");
2129
Writer.
WriteLine
(") {");
2137
Writer.
WriteLine
(") {");
2144
Writer.
WriteLine
("}");
2148
Writer.
WriteLine
("}");
2165
Writer.
WriteLine
(") {");
2173
Writer.
WriteLine
(") {");
2186
Writer.
WriteLine
("}");
2190
Writer.
WriteLine
("}");
2198
Writer.
WriteLine
("}");
2213
Writer.
WriteLine
("{");
2218
Writer.
WriteLine
("if (a != null) {");
2233
Writer.
WriteLine
(");");
2239
Writer.
WriteLine
("();");
2250
Writer.
WriteLine
(").GetEnumerator();");
2259
Writer.
WriteLine
(".Invoke(a, new object[0]);");
2264
Writer.
WriteLine
(">)a).GetEnumerator();");
2274
Writer.
WriteLine
(";");
2276
Writer.
WriteLine
("if (e != null)");
2277
Writer.
WriteLine
("while (e.MoveNext()) {");
2286
Writer.
WriteLine
("a.Length; i++) {");
2291
Writer.
WriteLine
(")a).Count; i++) {");
2300
Writer.
WriteLine
("if (i != 0) Writer.WriteString(\" \");");
2304
Writer.
WriteLine
("if (i != 0) sb.Append(\" \");");
2311
Writer.
WriteLine
(");");
2317
Writer.
WriteLine
("}");
2321
Writer.
WriteLine
("Writer.WriteEndAttribute();");
2324
Writer.
WriteLine
("if (sb.Length != 0) {");
2335
Writer.
WriteLine
("sb.ToString());");
2337
Writer.
WriteLine
("}");
2343
Writer.
WriteLine
("}");
2346
Writer.
WriteLine
("}");
2361
Writer.
WriteLine
(");");
2384
Writer.
WriteLine
("{");
2389
Writer.
WriteLine
("if (a != null) {");
2398
Writer.
WriteLine
("if (c == null || c.Length < a.Length) {");
2406
Writer.
WriteLine
("}");
2412
Writer.
WriteLine
("}");
2415
Writer.
WriteLine
("}");
2429
Writer.
WriteLine
(").GetEnumerator();");
2440
Writer.
WriteLine
(", new object[0]);");
2447
Writer.
WriteLine
(").GetEnumerator();");
2457
Writer.
WriteLine
(";");
2459
Writer.
WriteLine
("if (e != null)");
2460
Writer.
WriteLine
("while (e.MoveNext()) {");
2485
Writer.
WriteLine
("++) {");
2502
Writer.
WriteLine
("}");
2523
Writer.
WriteLine
("{");
2558
Writer.
WriteLine
(") {");
2568
Writer.
WriteLine
("}");
2578
Writer.
WriteLine
(") {");
2585
Writer.
WriteLine
("}");
2597
Writer.
WriteLine
(") {");
2605
Writer.
WriteLine
(";");
2627
Writer.
WriteLine
(") {");
2634
Writer.
WriteLine
(") {");
2640
Writer.
WriteLine
("}");
2641
Writer.
WriteLine
("else {");
2644
Writer.
WriteLine
("// throw Value '{0}' of the choice identifier '{1}' does not match element '{2}' from namespace '{3}'.");
2650
Writer.
WriteLine
(", elem.Name, elem.NamespaceURI);");
2652
Writer.
WriteLine
("}");
2655
Writer.
WriteLine
("}");
2658
Writer.
WriteLine
("else {");
2665
Writer.
WriteLine
("throw CreateUnknownAnyElementException(elem.Name, elem.NamespaceURI);");
2669
Writer.
WriteLine
("}");
2672
Writer.
WriteLine
("}");
2681
Writer.
WriteLine
(") {");
2688
Writer.
WriteLine
("}");
2706
Writer.
WriteLine
("{");
2711
Writer.
WriteLine
(");");
2714
Writer.
WriteLine
("}");
2717
Writer.
WriteLine
("}");
2731
Writer.
WriteLine
(");");
2738
Writer.
WriteLine
(".WriteTo(Writer);");
2752
Writer.
WriteLine
(" != null) {");
2762
Writer.
WriteLine
("}");
2764
Writer.
WriteLine
("else {");
2768
Writer.
WriteLine
("}");
2789
Writer.
WriteLine
(");");
2796
Writer.
WriteLine
("{");
2808
Writer.
WriteLine
("{");
2831
Writer.
WriteLine
("++) {");
2839
Writer.
WriteLine
("}");
2842
Writer.
WriteLine
("}");
2844
Writer.
WriteLine
("}");
2848
Writer.
WriteLine
("{");
2860
Writer.
WriteLine
("{");
2867
Writer.
WriteLine
("}");
2869
Writer.
WriteLine
("}");
2879
Writer.
WriteLine
(");");
2883
Writer.
WriteLine
(");");
2945
Writer.
WriteLine
(");");
2966
Writer.
WriteLine
(") {");
2972
Writer.
WriteLine
("}");
2973
Writer.
WriteLine
("else {");
2978
Writer.
WriteLine
(");");
2981
Writer.
WriteLine
("}");
3003
Writer.
WriteLine
(");");
3040
Writer.
WriteLine
(");");
3046
Writer.
WriteLine
(") == null) {");
3050
Writer.
WriteLine
("}");
3051
Writer.
WriteLine
("else {");
3140
Writer.
WriteLine
(");");
3157
Writer.
WriteLine
("; i++) {");
3159
Writer.
WriteLine
("if (p[i] != null) {");
3161
Writer.
WriteLine
("WritePotentiallyReferencingElement(null, null, p[i], p[i].GetType(), true, false);");
3163
Writer.
WriteLine
("}");
3165
Writer.
WriteLine
("}");
3373
writer.
WriteLine
("static "+typeof(Type).FullName+" "+typeVariable +" = " + elementTypeVariable + ".MakeArrayType();");
3380
writer.
WriteLine
(");");
3391
writer.
WriteLine
("static "+typeof(Type).FullName+" "+typeVariable +" = typeof(System.Nullable<>).MakeGenericType(new " + typeof(Type).FullName + "[] {"+parameterTypeVariable+"});");
3398
writer.
WriteLine
(");");
3484
writer.
WriteLine
(");");
3498
writer.
WriteLine
(");");
3506
writer.
WriteLine
(");");
3540
writer.
WriteLine
("}, null);");
3559
writer.
WriteLine
("{typeof(int)}));");
3744
writer.
WriteLine
(";");
3753
writer.
WriteLine
(";");
3787
writer.
WriteLine
(";");