Show a Settings XML in a PropertyGrid

319 Views Asked by At

I serialized a Properties.Settings object to a XML string and now I want to deserialize it again in an other application to display it in a PropertyGrid. I have this code but it doesn't work. I use c#. How can I do this?

string XMLSettings = webService.AdminGetSettings();
XmlSerializer xs = new XmlSerializer(typeof(Properties.Settings));
TextReader tr = new StringReader(XMLSettings);
Properties.Settings test = (Properties.Settings)xs.Deserialize(tr);
0

There are 0 best solutions below