Skip to content

Commit 474e8d5

Browse files
authored
change sample used (#3972)
1 parent 8a13758 commit 474e8d5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

xml/System.Xml/XmlWriterSettings.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -557,10 +557,10 @@ using (StreamWriter output =
557557
558558
559559
## Examples
560-
The following example writes an XML fragment to a memory stream.
560+
The following example shows how to set the `Enconding` property:
561561
562-
[!code-csharp[XmlWriterSettings.CloseOutput#1](~/samples/snippets/csharp/VS_Snippets_Data/XmlWriterSettings.CloseOutput/CS/writestream2.cs#1)]
563-
[!code-vb[XmlWriterSettings.CloseOutput#1](~/samples/snippets/visualbasic/VS_Snippets_Data/XmlWriterSettings.CloseOutput/VB/writestream2.vb#1)]
562+
[!code-csharp[XmlWriterSettings.CloseOutput#1](~/samples/snippets/csharp/VS_Snippets_Data/XML_Migration/CS/migration.cs#6)]
563+
[!code-vb[XmlWriterSettings.CloseOutput#1](~/samples/snippets/visualbasic/VS_Snippets_Data/XML_Migration/VB/migration.vb#6)]
564564
565565
]]></format>
566566
</remarks>

0 commit comments

Comments
 (0)