Save List<T> to XML file




So we need to save our List<T> to XML file for something. For example, for work with it in Access. C# is great for this with using System.Xml.Serialization. There are only 4 strings of code to save an XML-file. Of course I don’t describe how to get List<T> items

 

Our class is:

Writing to XML-file takes only 4 strings of code:

The result is something like this:

 

 



MarkiMarta.com. Notes of web-specialist
Since 2009
18+
Uninstall Visual Studio 2010 automatically

With coming up Visual studio 2012 finally I decided to try it. But first I need to uninstall Visual Studio...

Close