1 write to _writer
System.Private.Xml (1)
System\Xml\Serialization\XmlSerializationWriter.cs (1)
1604
_writer
= writer;
83 references to _writer
System.Private.Xml (83)
System\Xml\Serialization\XmlSerializationWriter.cs (83)
1634
_writer
.WriteLine($"static {typeof(Type).FullName} {typeVariable} = {elementTypeVariable}.MakeArrayType();");
1639
_writer
.Write($"static {typeof(Type).FullName} {typeVariable} = {assemblyVariable}.GetType(");
1641
_writer
.WriteLine(");");
1652
_writer
.WriteLine($"static {typeof(Type).FullName} {typeVariable} = typeof(System.Nullable<>).MakeGenericType(new {typeof(Type).FullName}[] {{{parameterTypeVariable}}});");
1657
_writer
.Write($"static {typeof(Type).FullName} {typeVariable} = {assemblyVariable}.GetType(");
1659
_writer
.WriteLine(");");
1685
_writer
.Write(string.Format(CultureInfo.InvariantCulture, HelperClassesForUseReflection,
1764
_writer
.Write($"static {typeof(Assembly).FullName} {assemblyVariable} = ResolveDynamicAssembly(");
1766
_writer
.WriteLine(");");
1781
_writer
.Write($"static XSPropInfo {propVariable} = new XSPropInfo({typeVariable}, ");
1783
_writer
.WriteLine(");");
1790
_writer
.Write($"static XSFieldInfo {fieldVariable} = new XSFieldInfo({typeVariable}, ");
1792
_writer
.WriteLine(");");
1803
_writer
.Write($"static {typeof(MethodInfo).FullName} {methodVariable} = {typeVariable}.GetMethod(");
1805
_writer
.Write(", ");
1808
_writer
.Write(bindingFlags);
1809
_writer
.Write(".Public | ");
1810
_writer
.Write(bindingFlags);
1811
_writer
.Write(".Instance | ");
1812
_writer
.Write(bindingFlags);
1813
_writer
.Write(".Static");
1817
_writer
.Write(" | ");
1818
_writer
.Write(bindingFlags);
1819
_writer
.Write(".NonPublic");
1821
_writer
.Write(", null, ");
1822
_writer
.Write($"new {typeof(Type).FullName}[] {{ ");
1825
_writer
.Write(paramTypes[i]);
1827
_writer
.Write(", ");
1829
_writer
.WriteLine("}, null);");
1839
_writer
.Write("static XSArrayInfo ");
1840
_writer
.Write(itemVariable);
1841
_writer
.Write("= new XSArrayInfo(");
1842
_writer
.Write(GetStringForTypeof(CodeIdentifier.GetCSharpName(type), collectionUseReflection));
1843
_writer
.Write(".GetProperty(");
1845
_writer
.Write(",");
1847
_writer
.Write(GetStringForTypeof(CodeIdentifier.GetCSharpName(defaultIndexer.PropertyType), elementUseReflection));
1848
_writer
.Write(",new ");
1849
_writer
.Write(typeof(Type[]).FullName);
1850
_writer
.WriteLine("{typeof(int)}));");
2050
_writer
.Write(typeFullName);
2051
_writer
.Write(" ");
2052
_writer
.Write(variableName);
2055
_writer
.Write(" = ");
2058
_writer
.Write($"({typeFullName})");
2060
_writer
.Write(initValue);
2062
_writer
.WriteLine(";");
2067
_writer
.Write(useReflection ? "object" : escapedName);
2068
_writer
.Write(" ");
2069
_writer
.Write(source);
2070
_writer
.Write(" = ");
2071
_writer
.Write(GetStringForCreateInstance(escapedName, useReflection, ctorInaccessible, !useReflection && ctorInaccessible));
2072
_writer
.WriteLine(";");
2078
_writer
.Write(source);
2079
_writer
.Write(" is ");
2080
_writer
.Write(escapedTypeName);
2083
_writer
.Write(GetReflectionVariable(escapedTypeName, null));
2084
_writer
.Write(".IsAssignableFrom(");
2085
_writer
.Write(source);
2086
_writer
.Write(".GetType())");
2100
_writer
.Write(typeName);
2101
_writer
.Write(" ");
2102
_writer
.Write(variableName);
2105
_writer
.Write(" = ");
2107
_writer
.Write($"({typeName})");
2108
_writer
.Write(initValue);
2110
_writer
.WriteLine(";");
2114
_writer
.Write("case ");
2117
_writer
.Write(c.Value.ToString(CultureInfo.InvariantCulture));
2121
_writer
.Write(fullTypeName);
2122
_writer
.Write(".@");
2124
_writer
.Write(c.Name);
2126
_writer
.Write(": ");
2130
_writer
.Write(variable);
2131
_writer
.Write(" == ");
2132
_writer
.Write(GetStringForTypeof(escapedTypeName, useReflection));
2138
_writer
.Write(variable);
2139
_writer
.Write(" == typeof(");
2140
_writer
.Write(escapedTypeName);
2141
_writer
.Write(")");
2144
_writer
.Write(variable);
2145
_writer
.Write(".IsArray ");
2146
_writer
.Write(" && ");
2190
WriteQuotedCSharpString(
_writer
, value);