596 references to WriteLine
System.Private.Xml (596)
System\Xml\Serialization\Compilation.cs (6)
335
writer.
WriteLine
("[assembly:System.Security.AllowPartiallyTrustedCallers()]");
336
writer.
WriteLine
("[assembly:System.Security.SecurityTransparent()]");
337
writer.
WriteLine
("[assembly:System.Security.SecurityRules(System.Security.SecurityRuleSet.Level1)]");
368
writer.
WriteLine
(")]");
385
writer.
WriteLine
($"namespace {GeneratedAssemblyNamespace} {{");
427
writer.
WriteLine
("}");
System\Xml\Serialization\XmlSerializationGeneratedCode.cs (44)
106
_writer.
WriteLine
(" = null;");
112
_writer.
WriteLine
(" {");
115
_writer.
WriteLine
("get {");
120
_writer.
WriteLine
(" == null) {");
126
_writer.
WriteLine
("();");
135
_writer.
WriteLine
(" = _tmp;");
137
_writer.
WriteLine
("}");
141
_writer.
WriteLine
(";");
143
_writer.
WriteLine
("}");
146
_writer.
WriteLine
("}");
161
_writer.
WriteLine
(";");
173
_writer.
WriteLine
(" type) {");
193
_writer.
WriteLine
(")) return true;");
195
_writer.
WriteLine
("return false;");
197
_writer.
WriteLine
("}");
210
_writer.
WriteLine
(" {");
215
_writer.
WriteLine
(" CreateReader() {");
219
_writer.
WriteLine
("();");
221
_writer.
WriteLine
("}");
225
_writer.
WriteLine
(" CreateWriter() {");
229
_writer.
WriteLine
("();");
231
_writer.
WriteLine
("}");
234
_writer.
WriteLine
("}");
249
_writer.
WriteLine
(" {");
257
_writer.
WriteLine
(" xmlReader) {");
262
_writer.
WriteLine
("return true;");
270
_writer.
WriteLine
(");");
273
_writer.
WriteLine
("}");
280
_writer.
WriteLine
(" writer) {");
291
_writer.
WriteLine
("objectToSerialize);");
293
_writer.
WriteLine
("}");
300
_writer.
WriteLine
(" reader) {");
306
_writer.
WriteLine
("();");
308
_writer.
WriteLine
("}");
311
_writer.
WriteLine
("}");
327
_writer.
WriteLine
("());");
339
_writer.
WriteLine
(" type) {");
359
_writer.
WriteLine
("();");
362
_writer.
WriteLine
("return null;");
364
_writer.
WriteLine
("}");
372
_writer.
WriteLine
(" {");
379
_writer.
WriteLine
("(); } }");
385
_writer.
WriteLine
("(); } }");
394
_writer.
WriteLine
("}");
System\Xml\Serialization\XmlSerializationReader.cs (333)
2238
Writer.
WriteLine
(" {");
2305
Writer.
WriteLine
(";");
2309
Writer.
WriteLine
("protected override void InitIDs() {");
2318
Writer.
WriteLine
(");");
2321
Writer.
WriteLine
("}");
2324
Writer.
WriteLine
("}");
2347
Writer.
WriteLine
(")) {");
2355
Writer.
WriteLine
("else {");
2369
Writer.
WriteLine
(");");
2373
Writer.
WriteLine
("}");
2380
Writer.
WriteLine
("protected override void InitCallbacks() {");
2412
Writer.
WriteLine
("));");
2418
Writer.
WriteLine
("}");
2425
Writer.
WriteLine
("() {");
2427
Writer.
WriteLine
("// dummy array method");
2428
Writer.
WriteLine
("UnknownNode(null);");
2429
Writer.
WriteLine
("return null;");
2431
Writer.
WriteLine
("}");
2482
Writer.
WriteLine
("() {");
2484
Writer.
WriteLine
("Reader.MoveToContent();");
2488
Writer.
WriteLine
("];");
2572
if (members.Length > 0 && members[0].Mapping.IsReturnValue) Writer.
WriteLine
("IsReturnValue = true;");
2582
Writer.
WriteLine
("Reader.MoveToElement();");
2589
Writer.
WriteLine
("if (Reader.IsEmptyElement) { Reader.Skip(); Reader.MoveToContent(); continue; }");
2590
Writer.
WriteLine
("Reader.ReadStartElement();");
2594
Writer.
WriteLine
("int state = 0;");
2602
Writer.
WriteLine
("Reader.MoveToContent();");
2609
Writer.
WriteLine
("ReadEndElement();");
2612
Writer.
WriteLine
("}");
2616
Writer.
WriteLine
("Reader.MoveToContent();");
2620
Writer.
WriteLine
("return p;");
2622
Writer.
WriteLine
("}");
2646
Writer.
WriteLine
(";");
2661
Writer.
WriteLine
("() {");
2664
Writer.
WriteLine
("Reader.MoveToContent();");
2668
Writer.
WriteLine
("];");
2679
Writer.
WriteLine
(") throw CreateUnknownNodeException();");
2681
Writer.
WriteLine
("bool isEmptyWrapper = Reader.IsEmptyElement;");
2682
Writer.
WriteLine
("Reader.ReadStartElement();");
2717
if (members.Length > 0 && members[0].Mapping.IsReturnValue) Writer.
WriteLine
("IsReturnValue = true;");
2729
Writer.
WriteLine
("Reader.MoveToContent();");
2734
Writer.
WriteLine
("if (!isEmptyWrapper) ReadEndElement();");
2739
Writer.
WriteLine
("ReadReferencedElements();");
2740
Writer.
WriteLine
("return p;");
2743
Writer.
WriteLine
("}");
2765
Writer.
WriteLine
(";");
2767
Writer.
WriteLine
("for (int i = 0; i < ci.Length; i++) {");
2779
if (useReflection) Writer.
WriteLine
("}");
2780
Writer.
WriteLine
(");");
2782
Writer.
WriteLine
("}");
2793
Writer.
WriteLine
("() {");
2795
Writer.
WriteLine
("object o = null;");
2801
Writer.
WriteLine
("Reader.MoveToContent();");
2806
Writer.
WriteLine
("Referenced(o);");
2807
Writer.
WriteLine
("ReadReferencedElements();");
2809
Writer.
WriteLine
("return (object)o;");
2811
Writer.
WriteLine
("}");
2906
Writer.
WriteLine
(";");
2913
Writer.
WriteLine
(" {");
2916
Writer.
WriteLine
("get {");
2921
Writer.
WriteLine
(" == null) {");
2927
Writer.
WriteLine
("();");
2949
Writer.
WriteLine
(");");
2953
Writer.
WriteLine
(" = h;");
2956
Writer.
WriteLine
("}");
2960
Writer.
WriteLine
(";");
2963
Writer.
WriteLine
("}");
2966
Writer.
WriteLine
("}");
2987
Writer.
WriteLine
("() {");
2989
Writer.
WriteLine
("string s = Reader.ReadElementString();");
2996
Writer.
WriteLine
("(string s) {");
3013
Writer.
WriteLine
("));");
3023
Writer.
WriteLine
(");");
3028
Writer.
WriteLine
("switch (s) {");
3042
Writer.
WriteLine
(";");
3049
Writer.
WriteLine
(");");
3051
Writer.
WriteLine
("}");
3055
Writer.
WriteLine
("}");
3064
Writer.
WriteLine
(")");
3080
Writer.
WriteLine
("false);");
3101
Writer.
WriteLine
(") {");
3103
Writer.
WriteLine
("Reader.ReadStartElement();");
3111
Writer.
WriteLine
("(CollapseWhitespace(Reader.ReadString()));");
3112
Writer.
WriteLine
("ReadEndElement();");
3113
Writer.
WriteLine
("return e;");
3115
Writer.
WriteLine
("}");
3123
Writer.
WriteLine
(") {");
3145
Writer.
WriteLine
(";");
3148
Writer.
WriteLine
("null;");
3151
Writer.
WriteLine
("return a;");
3153
Writer.
WriteLine
("}");
3170
Writer.
WriteLine
("(bool checkType) {");
3186
Writer.
WriteLine
(";");
3188
Writer.
WriteLine
("if (ReadNull())");
3191
Writer.
WriteLine
("return o;");
3200
Writer.
WriteLine
("return o;");
3203
Writer.
WriteLine
("}");
3226
Writer.
WriteLine
("bool checkType) {");
3230
Writer.
WriteLine
(" xsiType = checkType ? GetXsiType() : null;");
3231
Writer.
WriteLine
("bool isNull = false;");
3233
Writer.
WriteLine
("if (isNullable) isNull = ReadNull();");
3235
Writer.
WriteLine
("if (checkType) {");
3239
Writer.
WriteLine
("if (isNull) {");
3241
Writer.
WriteLine
($"if (xsiType != null) return ({typeName})ReadTypedNull(xsiType);");
3246
Writer.
WriteLine
(";");
3249
Writer.
WriteLine
("null;");
3252
Writer.
WriteLine
("}");
3260
Writer.
WriteLine
(") {");
3264
Writer.
WriteLine
($"return ReadTypedPrimitive(new System.Xml.XmlQualifiedName(\"{Soap.UrType}\", \"{XmlSchema.Namespace}\"));");
3267
Writer.
WriteLine
("}");
3268
Writer.
WriteLine
("else {");
3277
Writer.
WriteLine
(")xsiType);");
3279
Writer.
WriteLine
("}");
3282
Writer.
WriteLine
("}");
3284
Writer.
WriteLine
("if (isNull) return null;");
3292
Writer.
WriteLine
(");");
3298
Writer.
WriteLine
("DecodeName = false;");
3388
Writer.
WriteLine
("Reader.MoveToElement();");
3390
Writer.
WriteLine
("if (Reader.IsEmptyElement) {");
3392
Writer.
WriteLine
("Reader.Skip();");
3394
Writer.
WriteLine
("return o;");
3396
Writer.
WriteLine
("}");
3398
Writer.
WriteLine
("Reader.ReadStartElement();");
3401
Writer.
WriteLine
("int state = 0;");
3407
Writer.
WriteLine
("Reader.MoveToContent();");
3412
Writer.
WriteLine
("ReadEndElement();");
3413
Writer.
WriteLine
("return o;");
3416
Writer.
WriteLine
("}");
3429
Writer.
WriteLine
(") {");
3442
Writer.
WriteLine
(");");
3473
Writer.
WriteLine
("Reader.MoveToElement();");
3475
Writer.
WriteLine
("if (Reader.IsEmptyElement) { Reader.Skip(); return o; }");
3476
Writer.
WriteLine
("Reader.ReadStartElement();");
3482
Writer.
WriteLine
("Reader.MoveToContent();");
3486
Writer.
WriteLine
("ReadEndElement();");
3487
Writer.
WriteLine
("return o;");
3490
Writer.
WriteLine
("}");
3500
Writer.
WriteLine
("(object objFixup) {");
3502
Writer.
WriteLine
("Fixup fixup = (Fixup)objFixup;");
3504
Writer.
WriteLine
("string[] ids = fixup.Ids;");
3514
Writer.
WriteLine
("] != null) {");
3529
Writer.
WriteLine
("try {");
3538
Writer.
WriteLine
(";");
3543
Writer.
WriteLine
(" = true;");
3552
Writer.
WriteLine
("}");
3556
Writer.
WriteLine
("}");
3561
Writer.
WriteLine
("// get array of the collection items");
3572
Writer.
WriteLine
(") == null) {");
3579
Writer.
WriteLine
(");");
3586
Writer.
WriteLine
(";");
3590
Writer.
WriteLine
("}");
3601
Writer.
WriteLine
(");");
3602
Writer.
WriteLine
("AddFixup(collectionFixup);");
3609
Writer.
WriteLine
("(object collection, object collectionItems) {");
3612
Writer.
WriteLine
("if (collectionItems == null) return;");
3613
Writer.
WriteLine
("if (collection == null) return;");
3623
Writer.
WriteLine
("}");
3679
Writer.
WriteLine
("while (Reader.MoveToNextAttribute()) {");
3716
Writer.
WriteLine
(") {");
3721
Writer.
WriteLine
("}");
3729
Writer.
WriteLine
("if (IsXmlnsAttribute(Reader.Name)) {");
3738
Writer.
WriteLine
("();");
3742
Writer.
WriteLine
(".Add(Reader.Name.Length == 5 ? \"\" : Reader.LocalName, Reader.Value);");
3745
Writer.
WriteLine
("}");
3747
Writer.
WriteLine
("else {");
3752
Writer.
WriteLine
("if (!IsXmlnsAttribute(Reader.Name)) {");
3761
Writer.
WriteLine
(") Document.ReadNode(Reader);");
3762
Writer.
WriteLine
("ParseWsdlArrayType(attr);");
3784
Writer.
WriteLine
(");");
3787
Writer.
WriteLine
("}");
3790
Writer.
WriteLine
("}");
3804
Writer.
WriteLine
(";");
3810
Writer.
WriteLine
(") {");
3817
Writer.
WriteLine
(";");
3819
Writer.
WriteLine
("}");
3828
Writer.
WriteLine
("string listValues = Reader.Value;");
3829
Writer.
WriteLine
("string[] vals = listValues.Split(null);");
3830
Writer.
WriteLine
("for (int i = 0; i < vals.Length; i++) {");
3838
Writer.
WriteLine
(";");
3840
Writer.
WriteLine
("}");
3847
Writer.
WriteLine
(";");
3853
Writer.
WriteLine
(" = true;");
3858
Writer.
WriteLine
(" = true;");
3890
Writer.
WriteLine
(");");
3891
Writer.
WriteLine
("AddFixup(fixup);");
3917
Writer.
WriteLine
(" = 0;");
3926
Writer.
WriteLine
(" = 0;");
3938
Writer.
WriteLine
("});");
3940
Writer.
WriteLine
(");");
3954
Writer.
WriteLine
(");");
3961
Writer.
WriteLine
(";");
4012
Writer.
WriteLine
("string tmp = null;");
4017
Writer.
WriteLine
(".Element) {");
4031
Writer.
WriteLine
("}");
4036
Writer.
WriteLine
("else {");
4038
Writer.
WriteLine
(elseString);
4040
Writer.
WriteLine
("}");
4047
Writer.
WriteLine
(".Text || ");
4050
Writer.
WriteLine
(".CDATA || ");
4053
Writer.
WriteLine
(".Whitespace || ");
4056
Writer.
WriteLine
(".SignificantWhitespace) {");
4066
Writer.
WriteLine
(";");
4069
Writer.
WriteLine
("}");
4109
Writer.
WriteLine
("true);");
4111
Writer.
WriteLine
("false);");
4125
Writer.
WriteLine
(";");
4130
Writer.
WriteLine
("string refElemId = null;");
4131
Writer.
WriteLine
("object refElem = ReadReferencingElement(null, null, true, out refElemId);");
4133
Writer.
WriteLine
("if (refElemId != null) {");
4136
Writer.
WriteLine
(".Add(refElemId);");
4138
Writer.
WriteLine
("IsObject.Add(false);");
4140
Writer.
WriteLine
("}");
4141
Writer.
WriteLine
("else if (refElem != null) {");
4144
Writer.
WriteLine
(".Add(refElem);");
4146
Writer.
WriteLine
("IsObject.Add(true);");
4148
Writer.
WriteLine
("}");
4168
Writer.
WriteLine
(elementElseString);
4190
Writer.
WriteLine
("switch (state) {");
4217
Writer.
WriteLine
("do {");
4231
Writer.
WriteLine
(":");
4274
Writer.
WriteLine
(") {");
4282
Writer.
WriteLine
(" != null) {");
4297
Writer.
WriteLine
(";");
4301
Writer.
WriteLine
("}");
4309
Writer.
WriteLine
("Id;");
4317
Writer.
WriteLine
("IsReturnValue = false;");
4321
Writer.
WriteLine
(" = true;");
4325
Writer.
WriteLine
("break;");
4328
Writer.
WriteLine
("}");
4334
Writer.
WriteLine
("else {");
4340
Writer.
WriteLine
(";");
4344
Writer.
WriteLine
("}");
4346
Writer.
WriteLine
("break;");
4354
Writer.
WriteLine
("default:");
4363
Writer.
WriteLine
("break;");
4368
Writer.
WriteLine
("} while (false);");
4372
Writer.
WriteLine
("}");
4452
Writer.
WriteLine
(";");
4474
Writer.
WriteLine
(";");
4482
Writer.
WriteLine
(";");
4533
Writer.
WriteLine
(");");
4538
Writer.
WriteLine
("if (rre != null) {");
4542
Writer.
WriteLine
("}");
4546
Writer.
WriteLine
("try {");
4551
Writer.
WriteLine
(";");
4557
Writer.
WriteLine
("if (!ReadNull()) {");
4580
Writer.
WriteLine
("(Reader.IsEmptyElement)) {");
4582
Writer.
WriteLine
("Reader.Skip();");
4584
Writer.
WriteLine
("}");
4585
Writer.
WriteLine
("else {");
4588
Writer.
WriteLine
("Reader.ReadStartElement();");
4594
Writer.
WriteLine
("Reader.MoveToContent();");
4598
Writer.
WriteLine
("ReadEndElement();");
4599
Writer.
WriteLine
("}");
4604
Writer.
WriteLine
("}");
4607
Writer.
WriteLine
("else {");
4613
Writer.
WriteLine
("}");
4623
Writer.
WriteLine
(" = true;");
4641
Writer.
WriteLine
(";");
4647
Writer.
WriteLine
("if (ReadNull()) {");
4659
Writer.
WriteLine
(";");
4661
Writer.
WriteLine
("}");
4666
Writer.
WriteLine
("if (Reader.IsEmptyElement) {");
4668
Writer.
WriteLine
("Reader.Skip();");
4670
Writer.
WriteLine
("}");
4671
Writer.
WriteLine
("else {");
4675
Writer.
WriteLine
("{");
4681
Writer.
WriteLine
("if (Reader.IsEmptyElement) {");
4683
Writer.
WriteLine
("Reader.Skip();");
4694
Writer.
WriteLine
(";");
4696
Writer.
WriteLine
("}");
4697
Writer.
WriteLine
("else {");
4702
Writer.
WriteLine
(";");
4704
Writer.
WriteLine
("}");
4728
Writer.
WriteLine
(";");
4731
Writer.
WriteLine
("}");
4753
Writer.
WriteLine
(";");
4757
Writer.
WriteLine
("if (rre != null) {");
4761
Writer.
WriteLine
("try {");
4766
Writer.
WriteLine
(";");
4770
Writer.
WriteLine
(");");
4774
Writer.
WriteLine
("}");
4802
Writer.
WriteLine
(";");
4816
Writer.
WriteLine
(";");
4824
Writer.
WriteLine
(" tser = GetXsiType();");
4829
Writer.
WriteLine
(") {");
4847
Writer.
WriteLine
(", true");
4851
Writer.
WriteLine
(";");
4855
Writer.
WriteLine
("}");
4880
Writer.
WriteLine
(";");
4894
Writer.
WriteLine
(") {");
4908
Writer.
WriteLine
(", true");
4912
Writer.
WriteLine
(";");
4928
Writer.
WriteLine
(");");
4933
Writer.
WriteLine
($"// missing real mapping for {derived.XsiType}");
4940
Writer.
WriteLine
(");");
4944
Writer.
WriteLine
("}");
4952
Writer.
WriteLine
("Reader.MoveToContent();");
4957
Writer.
WriteLine
(".None) {");
4963
Writer.
WriteLine
("}");
4973
Writer.
WriteLine
("];");
4978
Writer.
WriteLine
("Reader.MoveToContent();");
4981
Writer.
WriteLine
(".Element) {");
4985
Writer.
WriteLine
("\");");
4988
Writer.
WriteLine
(".ToBoolean(root)) break;");
4989
Writer.
WriteLine
("ReadReferencedElement();");
4990
Writer.
WriteLine
("Reader.MoveToContent();");
5006
Writer.
WriteLine
("();");
5013
Writer.
WriteLine
("();");
5018
Writer.
WriteLine
("int isObjectIndex = 0;");
5021
Writer.
WriteLine
(") {");
5023
Writer.
WriteLine
("bool isReferenced = true;");
5026
Writer.
WriteLine
("IsObject[isObjectIndex++];");
5027
Writer.
WriteLine
("object refObj = isObject ? obj : GetTarget((string)obj);");
5028
Writer.
WriteLine
("if (refObj == null) continue;");
5030
Writer.
WriteLine
(" refObjType = refObj.GetType();");
5031
Writer.
WriteLine
("string refObjId = null;");
5035
Writer.
WriteLine
("if (isObject && isReferenced) Referenced(refObj); // need to mark this obj as ref'd since we didn't do GetTarget");
5037
Writer.
WriteLine
("}");
5044
Writer.
WriteLine
("\") == \"0\") {");
5046
Writer.
WriteLine
(source);
5048
Writer.
WriteLine
("}");
5060
Writer.
WriteLine
(";");
5064
Writer.
WriteLine
("try {");
5070
Writer.
WriteLine
(";");
5077
Writer.
WriteLine
(");");
5084
Writer.
WriteLine
(");");
5087
Writer.
WriteLine
("}");
5094
Writer.
WriteLine
("}");
5097
Writer.
WriteLine
(") {");
5109
Writer.
WriteLine
(", null);");
5114
Writer.
WriteLine
(");");
5117
Writer.
WriteLine
("}");
System\Xml\Serialization\XmlSerializationWriter.cs (213)
1634
_writer.
WriteLine
($"static {typeof(Type).FullName} {typeVariable} = {elementTypeVariable}.MakeArrayType();");
1641
_writer.
WriteLine
(");");
1652
_writer.
WriteLine
($"static {typeof(Type).FullName} {typeVariable} = typeof(System.Nullable<>).MakeGenericType(new {typeof(Type).FullName}[] {{{parameterTypeVariable}}});");
1659
_writer.
WriteLine
(");");
1766
_writer.
WriteLine
(");");
1783
_writer.
WriteLine
(");");
1792
_writer.
WriteLine
(");");
1829
_writer.
WriteLine
("}, null);");
1850
_writer.
WriteLine
("{typeof(int)}));");
2062
_writer.
WriteLine
(";");
2072
_writer.
WriteLine
(";");
2110
_writer.
WriteLine
(";");
2255
Writer.
WriteLine
(" {");
2310
Writer.
WriteLine
("}");
2331
Writer.
WriteLine
("protected override void InitCallbacks() {");
2353
Writer.
WriteLine
("));");
2359
Writer.
WriteLine
("}");
2369
Writer.
WriteLine
(" {");
2393
Writer.
WriteLine
(");");
2398
Writer.
WriteLine
("}");
2474
Writer.
WriteLine
(" | ");
2489
Writer.
WriteLine
(" {");
2522
Writer.
WriteLine
(");");
2527
Writer.
WriteLine
("}");
2545
Writer.
WriteLine
(");");
2567
Writer.
WriteLine
(");");
2577
Writer.
WriteLine
("WriteEndElement();");
2583
Writer.
WriteLine
(");");
2613
Writer.
WriteLine
("(object[] p) {");
2616
Writer.
WriteLine
("WriteStartDocument();");
2620
Writer.
WriteLine
("TopLevelElement();");
2626
Writer.
WriteLine
("int pLength = p.Length;");
2639
Writer.
WriteLine
(") {");
2643
Writer.
WriteLine
("}");
2673
Writer.
WriteLine
(") {");
2682
Writer.
WriteLine
(") {");
2691
Writer.
WriteLine
("}");
2695
Writer.
WriteLine
("}");
2728
Writer.
WriteLine
(") {");
2737
Writer.
WriteLine
(") {");
2769
Writer.
WriteLine
(");");
2778
Writer.
WriteLine
("}");
2782
Writer.
WriteLine
("}");
2796
Writer.
WriteLine
(") {");
2802
Writer.
WriteLine
("}");
2804
Writer.
WriteLine
("WriteReferencedElements();");
2807
Writer.
WriteLine
("}");
2820
Writer.
WriteLine
("(object o) {");
2823
Writer.
WriteLine
("WriteStartDocument();");
2825
Writer.
WriteLine
("if (o == null) {");
2836
Writer.
WriteLine
("return;");
2838
Writer.
WriteLine
("}");
2842
Writer.
WriteLine
("TopLevelElement();");
2849
Writer.
WriteLine
("WriteReferencedElements();");
2852
Writer.
WriteLine
("}");
2870
Writer.
WriteLine
("(object e) {");
2879
Writer.
WriteLine
(" v) {");
2882
Writer.
WriteLine
("string s = null;");
2889
Writer.
WriteLine
($"switch ({ReflectionAwareCodeGen.GetStringForEnumLongValue("v", mapping.TypeDesc.UseReflection)} ){{");
2891
Writer.
WriteLine
("switch (v) {");
2901
Writer.
WriteLine
("; break;");
2917
Writer.
WriteLine
(", ");
2928
Writer.
WriteLine
(", ");
2943
Writer.
WriteLine
("); break;");
2951
Writer.
WriteLine
(");");
2954
Writer.
WriteLine
("}");
2962
Writer.
WriteLine
(");");
2963
Writer.
WriteLine
("Writer.WriteString(s);");
2967
Writer.
WriteLine
("return s;");
2970
Writer.
WriteLine
("}");
2980
Writer.
WriteLine
(") {");
2997
Writer.
WriteLine
(");");
2998
Writer.
WriteLine
("return;");
3000
Writer.
WriteLine
("}");
3019
Writer.
WriteLine
(") {");
3028
Writer.
WriteLine
("Writer.WriteStartElement(n, ns);");
3033
Writer.
WriteLine
(");");
3038
Writer.
WriteLine
("o));");
3039
Writer.
WriteLine
("Writer.WriteEndElement();");
3040
Writer.
WriteLine
("return;");
3042
Writer.
WriteLine
("}");
3054
Writer.
WriteLine
(") {");
3057
Writer.
WriteLine
("Writer.WriteStartElement(n, ns);");
3062
Writer.
WriteLine
(");");
3066
Writer.
WriteLine
("Writer.WriteEndElement();");
3067
Writer.
WriteLine
("return;");
3069
Writer.
WriteLine
("}");
3089
Writer.
WriteLine
("(object s) {");
3100
Writer.
WriteLine
(", bool needType) {");
3104
Writer.
WriteLine
("if ((object)o == null) {");
3106
Writer.
WriteLine
("if (isNullable) WriteNullTagLiteral(n, ns);");
3107
Writer.
WriteLine
("return;");
3109
Writer.
WriteLine
("}");
3111
Writer.
WriteLine
("if (!needType) {");
3115
Writer.
WriteLine
(" t = o.GetType();");
3118
Writer.
WriteLine
(") {");
3119
Writer.
WriteLine
("}");
3120
Writer.
WriteLine
("else {");
3128
Writer.
WriteLine
("WriteTypedPrimitive(n, ns, o, true);");
3129
Writer.
WriteLine
("return;");
3133
Writer.
WriteLine
("throw CreateUnknownTypeException(o);");
3136
Writer.
WriteLine
("}");
3138
Writer.
WriteLine
("}");
3145
Writer.
WriteLine
("EscapeName = false;");
3170
Writer.
WriteLine
(");");
3177
Writer.
WriteLine
(");");
3196
Writer.
WriteLine
(") {");
3205
Writer.
WriteLine
(") {");
3213
Writer.
WriteLine
("}");
3218
Writer.
WriteLine
("}");
3237
Writer.
WriteLine
(") {");
3246
Writer.
WriteLine
(") {");
3261
Writer.
WriteLine
("}");
3266
Writer.
WriteLine
("}");
3275
Writer.
WriteLine
("}");
3293
Writer.
WriteLine
("{");
3299
Writer.
WriteLine
("if (a != null) {");
3318
Writer.
WriteLine
(");");
3325
Writer.
WriteLine
("();");
3338
Writer.
WriteLine
(").GetEnumerator();");
3349
Writer.
WriteLine
(".Invoke(a, new object[0]);");
3355
Writer.
WriteLine
(">)a).GetEnumerator();");
3367
Writer.
WriteLine
(";");
3369
Writer.
WriteLine
("if (e != null)");
3370
Writer.
WriteLine
("while (e.MoveNext()) {");
3381
Writer.
WriteLine
("a.Length; i++) {");
3387
Writer.
WriteLine
(")a).Count; i++) {");
3398
Writer.
WriteLine
("if (i != 0) Writer.WriteString(\" \");");
3403
Writer.
WriteLine
("if (i != 0) sb.Append(\" \");");
3410
Writer.
WriteLine
(");");
3417
Writer.
WriteLine
("}");
3423
Writer.
WriteLine
("Writer.WriteEndAttribute();");
3427
Writer.
WriteLine
("if (sb.Length != 0) {");
3439
Writer.
WriteLine
("sb.ToString());");
3441
Writer.
WriteLine
("}");
3448
Writer.
WriteLine
("}");
3451
Writer.
WriteLine
("}");
3470
Writer.
WriteLine
(");");
3497
Writer.
WriteLine
("{");
3503
Writer.
WriteLine
("if (a != null) {");
3512
Writer.
WriteLine
("if (c == null || c.Length < a.Length) {");
3520
Writer.
WriteLine
("}");
3527
Writer.
WriteLine
("}");
3530
Writer.
WriteLine
("}");
3548
Writer.
WriteLine
(").GetEnumerator();");
3561
Writer.
WriteLine
(", new object[0]);");
3569
Writer.
WriteLine
(").GetEnumerator();");
3581
Writer.
WriteLine
(";");
3583
Writer.
WriteLine
("if (e != null)");
3584
Writer.
WriteLine
("while (e.MoveNext()) {");
3612
Writer.
WriteLine
("++) {");
3632
Writer.
WriteLine
("}");
3660
Writer.
WriteLine
("{");
3703
Writer.
WriteLine
(") {");
3713
Writer.
WriteLine
("}");
3724
Writer.
WriteLine
(") {");
3731
Writer.
WriteLine
("}");
3744
Writer.
WriteLine
(") {");
3752
Writer.
WriteLine
(";");
3776
Writer.
WriteLine
(") {");
3783
Writer.
WriteLine
(") {");
3790
Writer.
WriteLine
("}");
3791
Writer.
WriteLine
("else {");
3794
Writer.
WriteLine
("// throw Value '{0}' of the choice identifier '{1}' does not match element '{2}' from namespace '{3}'.");
3800
Writer.
WriteLine
(", elem.Name, elem.NamespaceURI);");
3802
Writer.
WriteLine
("}");
3805
Writer.
WriteLine
("}");
3809
Writer.
WriteLine
("else {");
3818
Writer.
WriteLine
("throw CreateUnknownAnyElementException(elem.Name, elem.NamespaceURI);");
3823
Writer.
WriteLine
("}");
3826
Writer.
WriteLine
("}");
3837
Writer.
WriteLine
(") {");
3844
Writer.
WriteLine
("}");
3865
Writer.
WriteLine
("{");
3870
Writer.
WriteLine
(");");
3873
Writer.
WriteLine
("}");
3876
Writer.
WriteLine
("}");
3893
Writer.
WriteLine
(");");
3901
Writer.
WriteLine
(".WriteTo(Writer);");
3918
Writer.
WriteLine
(" != null) {");
3928
Writer.
WriteLine
("}");
3931
Writer.
WriteLine
("else {");
3935
Writer.
WriteLine
("}");
3959
Writer.
WriteLine
(");");
3967
Writer.
WriteLine
("{");
3982
Writer.
WriteLine
("{");
4007
Writer.
WriteLine
("++) {");
4015
Writer.
WriteLine
("}");
4018
Writer.
WriteLine
("}");
4020
Writer.
WriteLine
("}");
4025
Writer.
WriteLine
("{");
4040
Writer.
WriteLine
("{");
4047
Writer.
WriteLine
("}");
4049
Writer.
WriteLine
("}");
4061
Writer.
WriteLine
(");");
4065
Writer.
WriteLine
(");");
4134
Writer.
WriteLine
(");");
4152
Writer.
WriteLine
(") {");
4158
Writer.
WriteLine
("}");
4159
Writer.
WriteLine
("else {");
4164
Writer.
WriteLine
(");");
4167
Writer.
WriteLine
("}");
4191
Writer.
WriteLine
(");");
4242
Writer.
WriteLine
(");");
4249
Writer.
WriteLine
(") == null) {");
4253
Writer.
WriteLine
("}");
4254
Writer.
WriteLine
("else {");
4387
Writer.
WriteLine
(");");
4407
Writer.
WriteLine
("; i++) {");
4409
Writer.
WriteLine
("if (p[i] != null) {");
4411
Writer.
WriteLine
("WritePotentiallyReferencingElement(null, null, p[i], p[i].GetType(), true, false);");
4413
Writer.
WriteLine
("}");
4415
Writer.
WriteLine
("}");