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