How do I persist/serialize a Dictionary<String,ObjectClass> to a file in .Net C#?
Posted on 2013-01-14
I'm in the middle of designing/implementing saving my C# session to a file.
I'm looking for some help in direction of how to serialize/deserialize several
collections to a file. The file will contain a List<>, several Dictionary<> collections
and a blob of binary data.
I'm thinking that using XML would probably be easier?
What is the best way to proceed?
Are there some good/relevant samples I can look at?
This is what some of my collections look like:
private Dictionary<String, List<DModel.Entity_Fields>> dEntityFields;
private Dictionary<String, List<ComponentClass>> dComponents;
private Dictionary<String, int> dFieldLengths;
private binary blob of data;