4 writes to _xmlTextWriter
System.Windows.Forms (4)
System\Resources\ResXResourceWriter.cs (4)
157
_xmlTextWriter
= new XmlTextWriter(_textWriter);
161
_xmlTextWriter
= new XmlTextWriter(_stream, Encoding.UTF8);
166
_xmlTextWriter
= new XmlTextWriter(_fileName, Encoding.UTF8);
527
_xmlTextWriter
= null;
33 references to _xmlTextWriter
System.Windows.Forms (33)
System\Resources\ResXResourceWriter.cs (33)
142
[MemberNotNull(nameof(
_xmlTextWriter
))]
145
if (
_xmlTextWriter
is not null)
169
_xmlTextWriter
.Formatting = Formatting.Indented;
170
_xmlTextWriter
.Indentation = 2;
174
_xmlTextWriter
.WriteStartDocument(); // writes <?xml version="1.0" encoding="utf-8"?>
177
_xmlTextWriter
.WriteStartElement("root");
182
_xmlTextWriter
.WriteNode(reader, true);
184
_xmlTextWriter
.WriteStartElement(ResHeaderStr);
186
_xmlTextWriter
.WriteAttributeString(NameStr, ResMimeTypeStr);
187
_xmlTextWriter
.WriteStartElement(ValueStr);
189
_xmlTextWriter
.WriteString(ResMimeType);
192
_xmlTextWriter
.WriteEndElement();
195
_xmlTextWriter
.WriteEndElement();
197
_xmlTextWriter
.WriteStartElement(ResHeaderStr);
199
_xmlTextWriter
.WriteAttributeString(NameStr, VersionStr);
200
_xmlTextWriter
.WriteStartElement(ValueStr);
202
_xmlTextWriter
.WriteString(Version);
205
_xmlTextWriter
.WriteEndElement();
208
_xmlTextWriter
.WriteEndElement();
210
_xmlTextWriter
.WriteStartElement(ResHeaderStr);
212
_xmlTextWriter
.WriteAttributeString(NameStr, ReaderStr);
213
_xmlTextWriter
.WriteStartElement(ValueStr);
215
_xmlTextWriter
.WriteString(MultitargetUtil.GetAssemblyQualifiedName(typeof(ResXResourceReader), _typeNameConverter));
218
_xmlTextWriter
.WriteEndElement();
221
_xmlTextWriter
.WriteEndElement();
223
_xmlTextWriter
.WriteStartElement(ResHeaderStr);
225
_xmlTextWriter
.WriteAttributeString(NameStr, WriterStr);
226
_xmlTextWriter
.WriteStartElement(ValueStr);
228
_xmlTextWriter
.WriteString(MultitargetUtil.GetAssemblyQualifiedName(typeof(ResXResourceWriter), _typeNameConverter));
231
_xmlTextWriter
.WriteEndElement();
234
_xmlTextWriter
.WriteEndElement();
242
return
_xmlTextWriter
;
526
_xmlTextWriter
?.Close();