Skip to content

Latest commit

 

History

History
25 lines (19 loc) · 490 Bytes

rpcsharpxml.md

File metadata and controls

25 lines (19 loc) · 490 Bytes

Serializable

  • 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);