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(" && "); 2190WriteQuotedCSharpString(_writer, value);