C
coder316
Hello,
I'm trying to change the encoding for a textwriter:
TextWriter w = new StringWriter();
XmlTextWriter xmlWriter = new XmlTextWriter(w);
w.Encoding = System.Text.Encoding.Unicode;
But I'm getting an error
Property or indexer 'System.IO.TextWriter.Encoding' cannot be assigned
to -- it is read only
How do I change this?
Thanks
I'm trying to change the encoding for a textwriter:
TextWriter w = new StringWriter();
XmlTextWriter xmlWriter = new XmlTextWriter(w);
w.Encoding = System.Text.Encoding.Unicode;
But I'm getting an error
Property or indexer 'System.IO.TextWriter.Encoding' cannot be assigned
to -- it is read only
How do I change this?
Thanks