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)
271nodeInfo.MimeType = ResXResourceWriter.ByteArraySerializedObjectMimeType; 321nodeInfo.MimeType = ResXResourceWriter.DefaultSerializedObjectMimeType; 401if (string.Equals(mimeTypeName, ResXResourceWriter.ByteArraySerializedObjectMimeType) 417if (!string.Equals(dataNodeInfo.MimeType, ResXResourceWriter.BinSerializedObjectMimeType)) 560Type? type = _nodeInfo.MimeType == ResXResourceWriter.BinSerializedObjectMimeType 625return _nodeInfo.MimeType == ResXResourceWriter.BinSerializedObjectMimeType
System\Resources\ResXResourceReader.cs (42)
210reader.NameTable.Add(ResXResourceWriter.TypeStr); 211reader.NameTable.Add(ResXResourceWriter.NameStr); 212reader.NameTable.Add(ResXResourceWriter.DataStr); 213reader.NameTable.Add(ResXResourceWriter.MetadataStr); 214reader.NameTable.Add(ResXResourceWriter.MimeTypeStr); 215reader.NameTable.Add(ResXResourceWriter.ValueStr); 216reader.NameTable.Add(ResXResourceWriter.ResHeaderStr); 217reader.NameTable.Add(ResXResourceWriter.VersionStr); 218reader.NameTable.Add(ResXResourceWriter.ResMimeTypeStr); 219reader.NameTable.Add(ResXResourceWriter.ReaderStr); 220reader.NameTable.Add(ResXResourceWriter.WriterStr); 221reader.NameTable.Add(ResXResourceWriter.BinSerializedObjectMimeType); 222reader.NameTable.Add(ResXResourceWriter.SoapSerializedObjectMimeType); 223reader.NameTable.Add(ResXResourceWriter.AssemblyStr); 224reader.NameTable.Add(ResXResourceWriter.AliasStr); 356if (reader.LocalName.Equals(ResXResourceWriter.AssemblyStr)) 360else if (reader.LocalName.Equals(ResXResourceWriter.DataStr)) 364else if (reader.LocalName.Equals(ResXResourceWriter.ResHeaderStr)) 368else if (reader.LocalName.Equals(ResXResourceWriter.MetadataStr)) 380string newMessage = string.Format(SR.SerializationException, reader[ResXResourceWriter.TypeStr], pt.Y, pt.X, se.Message); 387string newMessage = string.Format(SR.InvocationException, reader[ResXResourceWriter.TypeStr], pt.Y, pt.X, tie.InnerException?.Message); 420if (_resHeaderMimeType == ResXResourceWriter.ResMimeType) 423Type writerType = typeof(ResXResourceWriter); 463string? name = reader[ResXResourceWriter.NameStr]; 474if (name == ResXResourceWriter.VersionStr) 478else if (name == ResXResourceWriter.ResMimeTypeStr) 482else if (name == ResXResourceWriter.ReaderStr) 486else if (name == ResXResourceWriter.WriterStr) 494case ResXResourceWriter.VersionStr: 497case ResXResourceWriter.ResMimeTypeStr: 500case ResXResourceWriter.ReaderStr: 503case ResXResourceWriter.WriterStr: 512string? alias = reader[ResXResourceWriter.AliasStr]; 513string? typeName = reader[ResXResourceWriter.NameStr]; 533Name = reader[ResXResourceWriter.NameStr] ?? string.Empty 536string? typeName = reader[ResXResourceWriter.TypeStr]; 552: reader[ResXResourceWriter.TypeStr]; 554nodeInfo.MimeType = reader[ResXResourceWriter.MimeTypeStr]; 560&& (reader.LocalName.Equals(ResXResourceWriter.DataStr) || reader.LocalName.Equals(ResXResourceWriter.MetadataStr))) 574if (reader.Name.Equals(ResXResourceWriter.CommentStr)) 580if (!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);