23 instantiations of ResXResourceWriter
System.Windows.Forms.Design.Tests (8)
System\Resources\Tools\StronglyTypedResourceBuilderTests.cs (8)
240using (ResXResourceWriter writer = new(temp.Path)) 330using (ResXResourceWriter resxWriter = new(temp.Path)) 367using ResXResourceWriter resxWriter = new(resxStream); 410using (ResXResourceWriter resxWriter = new(temp.Path)) 447using ResXResourceWriter resxWriter = new(resxStream); 503using ResXResourceWriter resxWriter = new(resxStream); 552using ResXResourceWriter resxWriter = new(resxStream); 622using (ResXResourceWriter resxWriter = new(temp.Path))
System.Windows.Forms.Tests (15)
System\Resources\ResXResourceWriterTests.cs (15)
25using (ResXResourceWriter writer = new(stream)) 51using ResXResourceWriter writer = new(fileName); 64using ResXResourceWriter writer = new(fileName, _typeNameConverter); 77using ResXResourceWriter writer = new(stream); 90using ResXResourceWriter writer = new(stream, _typeNameConverter); 103using ResXResourceWriter writer = new(stringWriter); 116using ResXResourceWriter writer = new(stringWriter, _typeNameConverter); 126using ResXResourceWriter writer = new(_resxFileName); 147using ResXResourceWriter writer = new(_resxFileName); 168using ResXResourceWriter writer = new(_resxFileName); 189using ResXResourceWriter writer = new(_resxFileName); 210using ResXResourceWriter writer = new(_resxFileName); 231using ResXResourceWriter writer = new(_resxFileName); 253using ResXResourceWriter writer = new(_resxFileName); 274using ResXResourceWriter writer = new(_resxFileName);
77 references to ResXResourceWriter
System.Windows.Forms (51)
System\Resources\ResXDataNode.cs (6)
270nodeInfo.MimeType = ResXResourceWriter.ByteArraySerializedObjectMimeType; 320nodeInfo.MimeType = ResXResourceWriter.DefaultSerializedObjectMimeType; 400if (string.Equals(mimeTypeName, ResXResourceWriter.ByteArraySerializedObjectMimeType) 416if (!string.Equals(dataNodeInfo.MimeType, ResXResourceWriter.BinSerializedObjectMimeType)) 559Type? type = _nodeInfo.MimeType == ResXResourceWriter.BinSerializedObjectMimeType 624return _nodeInfo.MimeType == ResXResourceWriter.BinSerializedObjectMimeType
System\Resources\ResXResourceReader.cs (42)
209reader.NameTable.Add(ResXResourceWriter.TypeStr); 210reader.NameTable.Add(ResXResourceWriter.NameStr); 211reader.NameTable.Add(ResXResourceWriter.DataStr); 212reader.NameTable.Add(ResXResourceWriter.MetadataStr); 213reader.NameTable.Add(ResXResourceWriter.MimeTypeStr); 214reader.NameTable.Add(ResXResourceWriter.ValueStr); 215reader.NameTable.Add(ResXResourceWriter.ResHeaderStr); 216reader.NameTable.Add(ResXResourceWriter.VersionStr); 217reader.NameTable.Add(ResXResourceWriter.ResMimeTypeStr); 218reader.NameTable.Add(ResXResourceWriter.ReaderStr); 219reader.NameTable.Add(ResXResourceWriter.WriterStr); 220reader.NameTable.Add(ResXResourceWriter.BinSerializedObjectMimeType); 221reader.NameTable.Add(ResXResourceWriter.SoapSerializedObjectMimeType); 222reader.NameTable.Add(ResXResourceWriter.AssemblyStr); 223reader.NameTable.Add(ResXResourceWriter.AliasStr); 355if (reader.LocalName.Equals(ResXResourceWriter.AssemblyStr)) 359else if (reader.LocalName.Equals(ResXResourceWriter.DataStr)) 363else if (reader.LocalName.Equals(ResXResourceWriter.ResHeaderStr)) 367else if (reader.LocalName.Equals(ResXResourceWriter.MetadataStr)) 379string newMessage = string.Format(SR.SerializationException, reader[ResXResourceWriter.TypeStr], pt.Y, pt.X, se.Message); 386string newMessage = string.Format(SR.InvocationException, reader[ResXResourceWriter.TypeStr], pt.Y, pt.X, tie.InnerException?.Message); 419if (_resHeaderMimeType == ResXResourceWriter.ResMimeType) 422Type writerType = typeof(ResXResourceWriter); 462string? name = reader[ResXResourceWriter.NameStr]; 473if (name == ResXResourceWriter.VersionStr) 477else if (name == ResXResourceWriter.ResMimeTypeStr) 481else if (name == ResXResourceWriter.ReaderStr) 485else if (name == ResXResourceWriter.WriterStr) 493case ResXResourceWriter.VersionStr: 496case ResXResourceWriter.ResMimeTypeStr: 499case ResXResourceWriter.ReaderStr: 502case ResXResourceWriter.WriterStr: 511string? alias = reader[ResXResourceWriter.AliasStr]; 512string? typeName = reader[ResXResourceWriter.NameStr]; 532Name = reader[ResXResourceWriter.NameStr] ?? string.Empty 535string? typeName = reader[ResXResourceWriter.TypeStr]; 551: reader[ResXResourceWriter.TypeStr]; 553nodeInfo.MimeType = reader[ResXResourceWriter.MimeTypeStr]; 559&& (reader.LocalName.Equals(ResXResourceWriter.DataStr) || reader.LocalName.Equals(ResXResourceWriter.MetadataStr))) 573if (reader.Name.Equals(ResXResourceWriter.CommentStr)) 579if (!reader.Name.Equals(ResXResourceWriter.ValueStr))
System\Resources\ResXResourceSet.cs (1)
33public override Type GetDefaultWriter() => typeof(ResXResourceWriter);
System\Resources\ResXResourceWriter.cs (2)
126/// Initializes a new instance of the <see cref="ResXResourceWriter"/> class that writes to the specified 228_xmlTextWriter.WriteString(MultitargetUtil.GetAssemblyQualifiedName(typeof(ResXResourceWriter), _typeNameConverter));
System.Windows.Forms.Design (3)
System\ComponentModel\Design\Serialization\ResourceCodeDomSerializer.SerializationResourceManager.cs (3)
485if (invariantWriter is ResXResourceWriter resxWriter) 531if (Writer is ResXResourceWriter resxWriter) 550if (invariantWriter is null or ResXResourceWriter)
System.Windows.Forms.Design.Tests (8)
System\Resources\Tools\StronglyTypedResourceBuilderTests.cs (8)
240using (ResXResourceWriter writer = new(temp.Path)) 330using (ResXResourceWriter resxWriter = new(temp.Path)) 367using ResXResourceWriter resxWriter = new(resxStream); 410using (ResXResourceWriter resxWriter = new(temp.Path)) 447using ResXResourceWriter resxWriter = new(resxStream); 503using ResXResourceWriter resxWriter = new(resxStream); 552using ResXResourceWriter resxWriter = new(resxStream); 622using (ResXResourceWriter resxWriter = new(temp.Path))
System.Windows.Forms.Tests (15)
System\Resources\ResXResourceWriterTests.cs (15)
25using (ResXResourceWriter writer = new(stream)) 51using ResXResourceWriter writer = new(fileName); 64using ResXResourceWriter writer = new(fileName, _typeNameConverter); 77using ResXResourceWriter writer = new(stream); 90using ResXResourceWriter writer = new(stream, _typeNameConverter); 103using ResXResourceWriter writer = new(stringWriter); 116using ResXResourceWriter writer = new(stringWriter, _typeNameConverter); 126using ResXResourceWriter writer = new(_resxFileName); 147using ResXResourceWriter writer = new(_resxFileName); 168using ResXResourceWriter writer = new(_resxFileName); 189using ResXResourceWriter writer = new(_resxFileName); 210using ResXResourceWriter writer = new(_resxFileName); 231using ResXResourceWriter writer = new(_resxFileName); 253using ResXResourceWriter writer = new(_resxFileName); 274using ResXResourceWriter writer = new(_resxFileName);