This is the requirement. I want a collection which looks like this in XML format and I want to be able to serialize it and deserialize it.
In Debugger it looks like this (Click image to enlarge):
In XML, it should look like this (so that I can save the class to a database or send it through wire)
In .Net 1.1, you would create collection classes and then you would implement IEnumerable, IEnumerator, ICollection etc etc etc. In .Net 2.0, all you need to do is :
To Serlialize/Serialize your class to a database you need functions like these :
The whole collection class is here –> Complete Collection Classes
The CustomSerliazer class (which I have used to Serlize /Deserialize is here –> CustomXMLSerializer