23 instantiations of ResXResourceWriter
System.Windows.Forms.Design.Tests (8)
System\Resources\Tools\StronglyTypedResourceBuilderTests.cs (8)
240
using (ResXResourceWriter writer =
new
(temp.Path))
330
using (ResXResourceWriter resxWriter =
new
(temp.Path))
367
using ResXResourceWriter resxWriter =
new
(resxStream);
410
using (ResXResourceWriter resxWriter =
new
(temp.Path))
447
using ResXResourceWriter resxWriter =
new
(resxStream);
503
using ResXResourceWriter resxWriter =
new
(resxStream);
552
using ResXResourceWriter resxWriter =
new
(resxStream);
622
using (ResXResourceWriter resxWriter =
new
(temp.Path))
System.Windows.Forms.Tests (15)
System\Resources\ResXResourceWriterTests.cs (15)
25
using (ResXResourceWriter writer =
new
(stream))
51
using ResXResourceWriter writer =
new
(fileName);
64
using ResXResourceWriter writer =
new
(fileName, _typeNameConverter);
77
using ResXResourceWriter writer =
new
(stream);
90
using ResXResourceWriter writer =
new
(stream, _typeNameConverter);
103
using ResXResourceWriter writer =
new
(stringWriter);
116
using ResXResourceWriter writer =
new
(stringWriter, _typeNameConverter);
126
using ResXResourceWriter writer =
new
(_resxFileName);
147
using ResXResourceWriter writer =
new
(_resxFileName);
168
using ResXResourceWriter writer =
new
(_resxFileName);
189
using ResXResourceWriter writer =
new
(_resxFileName);
210
using ResXResourceWriter writer =
new
(_resxFileName);
231
using ResXResourceWriter writer =
new
(_resxFileName);
253
using ResXResourceWriter writer =
new
(_resxFileName);
274
using ResXResourceWriter writer =
new
(_resxFileName);
77 references to ResXResourceWriter
System.Windows.Forms (51)
System\Resources\ResXDataNode.cs (6)
271
nodeInfo.MimeType =
ResXResourceWriter
.ByteArraySerializedObjectMimeType;
321
nodeInfo.MimeType =
ResXResourceWriter
.DefaultSerializedObjectMimeType;
401
if (string.Equals(mimeTypeName,
ResXResourceWriter
.ByteArraySerializedObjectMimeType)
417
if (!string.Equals(dataNodeInfo.MimeType,
ResXResourceWriter
.BinSerializedObjectMimeType))
560
Type? type = _nodeInfo.MimeType ==
ResXResourceWriter
.BinSerializedObjectMimeType
625
return _nodeInfo.MimeType ==
ResXResourceWriter
.BinSerializedObjectMimeType
System\Resources\ResXResourceReader.cs (42)
210
reader.NameTable.Add(
ResXResourceWriter
.TypeStr);
211
reader.NameTable.Add(
ResXResourceWriter
.NameStr);
212
reader.NameTable.Add(
ResXResourceWriter
.DataStr);
213
reader.NameTable.Add(
ResXResourceWriter
.MetadataStr);
214
reader.NameTable.Add(
ResXResourceWriter
.MimeTypeStr);
215
reader.NameTable.Add(
ResXResourceWriter
.ValueStr);
216
reader.NameTable.Add(
ResXResourceWriter
.ResHeaderStr);
217
reader.NameTable.Add(
ResXResourceWriter
.VersionStr);
218
reader.NameTable.Add(
ResXResourceWriter
.ResMimeTypeStr);
219
reader.NameTable.Add(
ResXResourceWriter
.ReaderStr);
220
reader.NameTable.Add(
ResXResourceWriter
.WriterStr);
221
reader.NameTable.Add(
ResXResourceWriter
.BinSerializedObjectMimeType);
222
reader.NameTable.Add(
ResXResourceWriter
.SoapSerializedObjectMimeType);
223
reader.NameTable.Add(
ResXResourceWriter
.AssemblyStr);
224
reader.NameTable.Add(
ResXResourceWriter
.AliasStr);
356
if (reader.LocalName.Equals(
ResXResourceWriter
.AssemblyStr))
360
else if (reader.LocalName.Equals(
ResXResourceWriter
.DataStr))
364
else if (reader.LocalName.Equals(
ResXResourceWriter
.ResHeaderStr))
368
else if (reader.LocalName.Equals(
ResXResourceWriter
.MetadataStr))
380
string newMessage = string.Format(SR.SerializationException, reader[
ResXResourceWriter
.TypeStr], pt.Y, pt.X, se.Message);
387
string newMessage = string.Format(SR.InvocationException, reader[
ResXResourceWriter
.TypeStr], pt.Y, pt.X, tie.InnerException?.Message);
420
if (_resHeaderMimeType ==
ResXResourceWriter
.ResMimeType)
423
Type writerType = typeof(
ResXResourceWriter
);
463
string? name = reader[
ResXResourceWriter
.NameStr];
474
if (name ==
ResXResourceWriter
.VersionStr)
478
else if (name ==
ResXResourceWriter
.ResMimeTypeStr)
482
else if (name ==
ResXResourceWriter
.ReaderStr)
486
else if (name ==
ResXResourceWriter
.WriterStr)
494
case
ResXResourceWriter
.VersionStr:
497
case
ResXResourceWriter
.ResMimeTypeStr:
500
case
ResXResourceWriter
.ReaderStr:
503
case
ResXResourceWriter
.WriterStr:
512
string? alias = reader[
ResXResourceWriter
.AliasStr];
513
string? typeName = reader[
ResXResourceWriter
.NameStr];
533
Name = reader[
ResXResourceWriter
.NameStr] ?? string.Empty
536
string? typeName = reader[
ResXResourceWriter
.TypeStr];
552
: reader[
ResXResourceWriter
.TypeStr];
554
nodeInfo.MimeType = reader[
ResXResourceWriter
.MimeTypeStr];
560
&& (reader.LocalName.Equals(
ResXResourceWriter
.DataStr) || reader.LocalName.Equals(
ResXResourceWriter
.MetadataStr)))
574
if (reader.Name.Equals(
ResXResourceWriter
.CommentStr))
580
if (!reader.Name.Equals(
ResXResourceWriter
.ValueStr))
System\Resources\ResXResourceSet.cs (1)
33
public 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)
485
if (invariantWriter is
ResXResourceWriter
resxWriter)
531
if (Writer is
ResXResourceWriter
resxWriter)
550
if (invariantWriter is null or
ResXResourceWriter
)
System.Windows.Forms.Design.Tests (8)
System\Resources\Tools\StronglyTypedResourceBuilderTests.cs (8)
240
using (
ResXResourceWriter
writer = new(temp.Path))
330
using (
ResXResourceWriter
resxWriter = new(temp.Path))
367
using
ResXResourceWriter
resxWriter = new(resxStream);
410
using (
ResXResourceWriter
resxWriter = new(temp.Path))
447
using
ResXResourceWriter
resxWriter = new(resxStream);
503
using
ResXResourceWriter
resxWriter = new(resxStream);
552
using
ResXResourceWriter
resxWriter = new(resxStream);
622
using (
ResXResourceWriter
resxWriter = new(temp.Path))
System.Windows.Forms.Tests (15)
System\Resources\ResXResourceWriterTests.cs (15)
25
using (
ResXResourceWriter
writer = new(stream))
51
using
ResXResourceWriter
writer = new(fileName);
64
using
ResXResourceWriter
writer = new(fileName, _typeNameConverter);
77
using
ResXResourceWriter
writer = new(stream);
90
using
ResXResourceWriter
writer = new(stream, _typeNameConverter);
103
using
ResXResourceWriter
writer = new(stringWriter);
116
using
ResXResourceWriter
writer = new(stringWriter, _typeNameConverter);
126
using
ResXResourceWriter
writer = new(_resxFileName);
147
using
ResXResourceWriter
writer = new(_resxFileName);
168
using
ResXResourceWriter
writer = new(_resxFileName);
189
using
ResXResourceWriter
writer = new(_resxFileName);
210
using
ResXResourceWriter
writer = new(_resxFileName);
231
using
ResXResourceWriter
writer = new(_resxFileName);
253
using
ResXResourceWriter
writer = new(_resxFileName);
274
using
ResXResourceWriter
writer = new(_resxFileName);