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)
270
nodeInfo.MimeType =
ResXResourceWriter
.ByteArraySerializedObjectMimeType;
320
nodeInfo.MimeType =
ResXResourceWriter
.DefaultSerializedObjectMimeType;
400
if (string.Equals(mimeTypeName,
ResXResourceWriter
.ByteArraySerializedObjectMimeType)
416
if (!string.Equals(dataNodeInfo.MimeType,
ResXResourceWriter
.BinSerializedObjectMimeType))
559
Type? type = _nodeInfo.MimeType ==
ResXResourceWriter
.BinSerializedObjectMimeType
624
return _nodeInfo.MimeType ==
ResXResourceWriter
.BinSerializedObjectMimeType
System\Resources\ResXResourceReader.cs (42)
209
reader.NameTable.Add(
ResXResourceWriter
.TypeStr);
210
reader.NameTable.Add(
ResXResourceWriter
.NameStr);
211
reader.NameTable.Add(
ResXResourceWriter
.DataStr);
212
reader.NameTable.Add(
ResXResourceWriter
.MetadataStr);
213
reader.NameTable.Add(
ResXResourceWriter
.MimeTypeStr);
214
reader.NameTable.Add(
ResXResourceWriter
.ValueStr);
215
reader.NameTable.Add(
ResXResourceWriter
.ResHeaderStr);
216
reader.NameTable.Add(
ResXResourceWriter
.VersionStr);
217
reader.NameTable.Add(
ResXResourceWriter
.ResMimeTypeStr);
218
reader.NameTable.Add(
ResXResourceWriter
.ReaderStr);
219
reader.NameTable.Add(
ResXResourceWriter
.WriterStr);
220
reader.NameTable.Add(
ResXResourceWriter
.BinSerializedObjectMimeType);
221
reader.NameTable.Add(
ResXResourceWriter
.SoapSerializedObjectMimeType);
222
reader.NameTable.Add(
ResXResourceWriter
.AssemblyStr);
223
reader.NameTable.Add(
ResXResourceWriter
.AliasStr);
355
if (reader.LocalName.Equals(
ResXResourceWriter
.AssemblyStr))
359
else if (reader.LocalName.Equals(
ResXResourceWriter
.DataStr))
363
else if (reader.LocalName.Equals(
ResXResourceWriter
.ResHeaderStr))
367
else if (reader.LocalName.Equals(
ResXResourceWriter
.MetadataStr))
379
string newMessage = string.Format(SR.SerializationException, reader[
ResXResourceWriter
.TypeStr], pt.Y, pt.X, se.Message);
386
string newMessage = string.Format(SR.InvocationException, reader[
ResXResourceWriter
.TypeStr], pt.Y, pt.X, tie.InnerException?.Message);
419
if (_resHeaderMimeType ==
ResXResourceWriter
.ResMimeType)
422
Type writerType = typeof(
ResXResourceWriter
);
462
string? name = reader[
ResXResourceWriter
.NameStr];
473
if (name ==
ResXResourceWriter
.VersionStr)
477
else if (name ==
ResXResourceWriter
.ResMimeTypeStr)
481
else if (name ==
ResXResourceWriter
.ReaderStr)
485
else if (name ==
ResXResourceWriter
.WriterStr)
493
case
ResXResourceWriter
.VersionStr:
496
case
ResXResourceWriter
.ResMimeTypeStr:
499
case
ResXResourceWriter
.ReaderStr:
502
case
ResXResourceWriter
.WriterStr:
511
string? alias = reader[
ResXResourceWriter
.AliasStr];
512
string? typeName = reader[
ResXResourceWriter
.NameStr];
532
Name = reader[
ResXResourceWriter
.NameStr] ?? string.Empty
535
string? typeName = reader[
ResXResourceWriter
.TypeStr];
551
: reader[
ResXResourceWriter
.TypeStr];
553
nodeInfo.MimeType = reader[
ResXResourceWriter
.MimeTypeStr];
559
&& (reader.LocalName.Equals(
ResXResourceWriter
.DataStr) || reader.LocalName.Equals(
ResXResourceWriter
.MetadataStr)))
573
if (reader.Name.Equals(
ResXResourceWriter
.CommentStr))
579
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);