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:

 

 




No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URL

Leave a comment





MarkiMarta.com. Notes of web-specialist
Since 2009
18+