What is the VB equivalent of the following code snippet?
XmlWriterSettings settings = new XmlWriterSettings();
settings.Encoding = Encoding.UTF8;
settings.Indent = true;
using (XmlWriter wr开发者_Python百科iter = XmlWriter.Create(stream, settings))
Dim settings As New XmlWriterSettings()
settings.Encoding = Encoding.UTF8
settings.Indent = True
Using writer As XmlWriter = XmlWriter.Create(stream, settings)
End Using
You can use this for conversions:
http://converter.telerik.com/
Dim settings As New XmlWriterSettings()
settings.Encoding = Encoding.UTF8
settings.Indent = True
Not sure on the last line though.
精彩评论