1 write to _writer
System.Private.Xml (1)
System\Xml\Serialization\XmlSerializationGeneratedCode.cs (1)
38_writer = writer;
160 references to _writer
System.Private.Xml (160)
System\Xml\Serialization\XmlSerializationGeneratedCode.cs (160)
50internal IndentedWriter Writer { get { return _writer; } } 103_writer.Write(typeof(Hashtable).FullName); 104_writer.Write(" "); 105_writer.Write(privateName); 106_writer.WriteLine(" = null;"); 107_writer.Write("public override "); 108_writer.Write(typeof(Hashtable).FullName); 110_writer.Write(" "); 111_writer.Write(publicName); 112_writer.WriteLine(" {"); 113_writer.Indent++; 115_writer.WriteLine("get {"); 116_writer.Indent++; 118_writer.Write("if ("); 119_writer.Write(privateName); 120_writer.WriteLine(" == null) {"); 121_writer.Indent++; 123_writer.Write(typeof(Hashtable).FullName); 124_writer.Write(" _tmp = new "); 125_writer.Write(typeof(Hashtable).FullName); 126_writer.WriteLine("();"); 131_writer.Write("if ("); 132_writer.Write(privateName); 133_writer.Write(" == null) "); 134_writer.Write(privateName); 135_writer.WriteLine(" = _tmp;"); 136_writer.Indent--; 137_writer.WriteLine("}"); 139_writer.Write("return "); 140_writer.Write(privateName); 141_writer.WriteLine(";"); 142_writer.Indent--; 143_writer.WriteLine("}"); 145_writer.Indent--; 146_writer.WriteLine("}"); 157_writer.Write("_tmp["); 159_writer.Write("] = "); 161_writer.WriteLine(";"); 169_writer.Write("public override "); 170_writer.Write(typeof(bool).FullName); 171_writer.Write(" CanSerialize("); 172_writer.Write(typeof(Type).FullName); 173_writer.WriteLine(" type) {"); 174_writer.Indent++; 191_writer.Write("if (type == typeof("); 192_writer.Write(CodeIdentifier.GetCSharpName(type)); 193_writer.WriteLine(")) return true;"); 195_writer.WriteLine("return false;"); 196_writer.Indent--; 197_writer.WriteLine("}"); 205_writer.WriteLine(); 206_writer.Write("public abstract class "); 207_writer.Write(CodeIdentifier.GetCSharpName(baseSerializer)); 208_writer.Write(" : "); 209_writer.Write(typeof(System.Xml.Serialization.XmlSerializer).FullName); 210_writer.WriteLine(" {"); 211_writer.Indent++; 213_writer.Write("protected override "); 214_writer.Write(typeof(System.Xml.Serialization.XmlSerializationReader).FullName); 215_writer.WriteLine(" CreateReader() {"); 216_writer.Indent++; 217_writer.Write("return new "); 218_writer.Write(readerClass); 219_writer.WriteLine("();"); 220_writer.Indent--; 221_writer.WriteLine("}"); 223_writer.Write("protected override "); 224_writer.Write(typeof(System.Xml.Serialization.XmlSerializationWriter).FullName); 225_writer.WriteLine(" CreateWriter() {"); 226_writer.Indent++; 227_writer.Write("return new "); 228_writer.Write(writerClass); 229_writer.WriteLine("();"); 230_writer.Indent--; 231_writer.WriteLine("}"); 233_writer.Indent--; 234_writer.WriteLine("}"); 244_writer.WriteLine(); 245_writer.Write("public sealed class "); 246_writer.Write(CodeIdentifier.GetCSharpName(serializerName)); 247_writer.Write(" : "); 248_writer.Write(baseSerializer); 249_writer.WriteLine(" {"); 250_writer.Indent++; 252_writer.WriteLine(); 253_writer.Write("public override "); 254_writer.Write(typeof(bool).FullName); 255_writer.Write(" CanDeserialize("); 256_writer.Write(typeof(XmlReader).FullName); 257_writer.WriteLine(" xmlReader) {"); 258_writer.Indent++; 262_writer.WriteLine("return true;"); 266_writer.Write("return xmlReader.IsStartElement("); 268_writer.Write(", "); 270_writer.WriteLine(");"); 272_writer.Indent--; 273_writer.WriteLine("}"); 277_writer.WriteLine(); 278_writer.Write("protected override void Serialize(object objectToSerialize, "); 279_writer.Write(typeof(System.Xml.Serialization.XmlSerializationWriter).FullName); 280_writer.WriteLine(" writer) {"); 281_writer.Indent++; 282_writer.Write("(("); 283_writer.Write(writerClass); 284_writer.Write(")writer)."); 285_writer.Write(writeMethod); 286_writer.Write("("); 289_writer.Write("(object[])"); 291_writer.WriteLine("objectToSerialize);"); 292_writer.Indent--; 293_writer.WriteLine("}"); 297_writer.WriteLine(); 298_writer.Write("protected override object Deserialize("); 299_writer.Write(typeof(System.Xml.Serialization.XmlSerializationReader).FullName); 300_writer.WriteLine(" reader) {"); 301_writer.Indent++; 302_writer.Write("return (("); 303_writer.Write(readerClass); 304_writer.Write(")reader)."); 305_writer.Write(readMethod); 306_writer.WriteLine("();"); 307_writer.Indent--; 308_writer.WriteLine("}"); 310_writer.Indent--; 311_writer.WriteLine("}"); 323_writer.Write("_tmp.Add("); 325_writer.Write(", new "); 326_writer.Write((string?)serializers[key]); 327_writer.WriteLine("());"); 335_writer.Write("public override "); 336_writer.Write(typeof(System.Xml.Serialization.XmlSerializer).FullName); 337_writer.Write(" GetSerializer("); 338_writer.Write(typeof(Type).FullName); 339_writer.WriteLine(" type) {"); 340_writer.Indent++; 355_writer.Write("if (type == typeof("); 356_writer.Write(CodeIdentifier.GetCSharpName(type)); 357_writer.Write(")) return new "); 358_writer.Write((string?)serializers[xmlMappings[i].Key!]); 359_writer.WriteLine("();"); 362_writer.WriteLine("return null;"); 363_writer.Indent--; 364_writer.WriteLine("}"); 369_writer.WriteLine(); 370_writer.Write("public class XmlSerializerContract : global::"); 371_writer.Write(typeof(System.Xml.Serialization.XmlSerializerImplementation).FullName); 372_writer.WriteLine(" {"); 373_writer.Indent++; 375_writer.Write("public override global::"); 376_writer.Write(typeof(System.Xml.Serialization.XmlSerializationReader).FullName); 377_writer.Write(" Reader { get { return new "); 378_writer.Write(readerType); 379_writer.WriteLine("(); } }"); 381_writer.Write("public override global::"); 382_writer.Write(typeof(System.Xml.Serialization.XmlSerializationWriter).FullName); 383_writer.Write(" Writer { get { return new "); 384_writer.Write(writerType); 385_writer.WriteLine("(); } }"); 393_writer.Indent--; 394_writer.WriteLine("}");