- github.com/partouf/XmlInterop
- using System.Xml.Serialization
public class MyData {
public string MyFirstValue { get; set; }
public int MySecondValue { get; set; }
public bool MyThirdValue { get; set; }
}
MyData data = new MyData { MyFirstValue = "hello", MySecondValue = 12, MyThirdValue = true };
XmlInterop.WriteXml(fw, data);
MyData data2 = XmlInterop.CreateFromXml<MyData>(xmldata);