1 write to writer
System.Xml (1)
System\Xml\Serialization\XmlSerializationWriter.cs (1)
3348
this.
writer
= writer;
83 references to writer
System.Xml (83)
System\Xml\Serialization\XmlSerializationWriter.cs (83)
3373
writer
.WriteLine("static "+typeof(Type).FullName+" "+typeVariable +" = " + elementTypeVariable + ".MakeArrayType();");
3378
writer
.Write("static "+typeof(Type).FullName+" "+typeVariable +" = "+assemblyVariable+".GetType(");
3380
writer
.WriteLine(");");
3391
writer
.WriteLine("static "+typeof(Type).FullName+" "+typeVariable +" = typeof(System.Nullable<>).MakeGenericType(new " + typeof(Type).FullName + "[] {"+parameterTypeVariable+"});");
3396
writer
.Write("static "+typeof(Type).FullName+" "+typeVariable +" = "+assemblyVariable+".GetType(");
3398
writer
.WriteLine(");");
3419
writer
.Write(String.Format(CultureInfo.InvariantCulture, helperClassesForUseReflection,
3482
writer
.Write("static "+ typeof(Assembly).FullName+" "+assemblyVariable+" = "+"ResolveDynamicAssembly(");
3484
writer
.WriteLine(");");
3496
writer
.Write("static XSPropInfo "+propVariable+" = new XSPropInfo("+typeVariable+", ");
3498
writer
.WriteLine(");");
3504
writer
.Write("static XSFieldInfo "+fieldVariable+" = new XSFieldInfo("+typeVariable+", ");
3506
writer
.WriteLine(");");
3516
writer
.Write("static "+typeof(MethodInfo).FullName+" "+methodVariable+" = "+typeVariable+".GetMethod(");
3518
writer
.Write(", ");
3521
writer
.Write(bindingFlags);
3522
writer
.Write(".Public | ");
3523
writer
.Write(bindingFlags);
3524
writer
.Write(".Instance | ");
3525
writer
.Write(bindingFlags);
3526
writer
.Write(".Static");
3529
writer
.Write(" | ");
3530
writer
.Write(bindingFlags);
3531
writer
.Write(".NonPublic");
3533
writer
.Write(", null, ");
3534
writer
.Write("new "+typeof(Type).FullName+"[] { ");
3536
writer
.Write(paramTypes[i]);
3538
writer
.Write(", ");
3540
writer
.WriteLine("}, null);");
3548
writer
.Write("static XSArrayInfo ");
3549
writer
.Write(itemVariable);
3550
writer
.Write("= new XSArrayInfo(");
3551
writer
.Write(GetStringForTypeof(CodeIdentifier.GetCSharpName(type), collectionUseReflection));
3552
writer
.Write(".GetProperty(");
3554
writer
.Write(",");
3556
writer
.Write(GetStringForTypeof(CodeIdentifier.GetCSharpName(defaultIndexer.PropertyType), elementUseReflection));
3557
writer
.Write(",new ");
3558
writer
.Write(typeof(Type[]).FullName);
3559
writer
.WriteLine("{typeof(int)}));");
3734
writer
.Write(typeFullName);
3735
writer
.Write(" ");
3736
writer
.Write(variableName);
3738
writer
.Write(" = ");
3740
writer
.Write("("+typeFullName+")");
3742
writer
.Write(initValue);
3744
writer
.WriteLine(";");
3748
writer
.Write(useReflection ? "object" : escapedName);
3749
writer
.Write(" ");
3750
writer
.Write(source);
3751
writer
.Write(" = ");
3752
writer
.Write(GetStringForCreateInstance(escapedName, useReflection, ctorInaccessible, !useReflection && ctorInaccessible));
3753
writer
.WriteLine(";");
3757
writer
.Write(source);
3758
writer
.Write(" is ");
3759
writer
.Write(escapedTypeName);
3762
writer
.Write(GetReflectionVariable(escapedTypeName,null));
3763
writer
.Write(".IsAssignableFrom(");
3764
writer
.Write(source);
3765
writer
.Write(".GetType())");
3778
writer
.Write(typeName);
3779
writer
.Write(" ");
3780
writer
.Write(variableName);
3782
writer
.Write(" = ");
3784
writer
.Write("("+typeName+")");
3785
writer
.Write(initValue);
3787
writer
.WriteLine(";");
3790
writer
.Write("case ");
3792
writer
.Write(c.Value.ToString(CultureInfo.InvariantCulture));
3795
writer
.Write(fullTypeName);
3796
writer
.Write(".@");
3798
writer
.Write(c.Name);
3800
writer
.Write(": ");
3803
writer
.Write(variable);
3804
writer
.Write(" == ");
3805
writer
.Write(GetStringForTypeof(escapedTypeName, useReflection));
3809
writer
.Write(variable);
3810
writer
.Write(" == typeof(");
3811
writer
.Write(escapedTypeName);
3812
writer
.Write(")");
3815
writer
.Write(variable);
3816
writer
.Write(".IsArray ");
3817
writer
.Write(" && ");
3854
WriteQuotedCSharpString(
writer
, value);