XML Serialization quick and easy csharp
Serialization with XML and C# this is mainly here as a reminder for me on how to do it! To serialize to a file: using System.Xml; using System.Xml.Serialization; // other code List mylist = this.getList(); Type stype = typeof(List); var serializer = new XmlSerializer(stype); XmlWriterSettings settings = new XmlWriterSettings(); settings.OmitXmlDeclaration = true; // this is … XML Serialization quick and easy csharp
