Serialize/deserialize your objects using generics.
How to serialize to XML, any generic, derived, or other complex type, which XMLSerializer cannot serialize
.Net XML serializer supporting strong data typing, metamorphism, interface typed properties, circular references, and migration.
Just a reminder.
Arrays and collections can be serialized to XML. The standard action when using the default serializer is for the name of the collection property to be added to the XML, with a contained element for each item named according to the items’ data types.