Hi all,
I can serialize and deserialize a single class, but I'm wondering if it's
possible to serialize/deserialize different class types in the same file?
For example, I have a base class, and 3 classes derived from it. Instances
of these 3 classes are stored in a List<baseclass>. I'd like to be able to
save the objects in List<>, and later reload them. Is this possible? I can
write each object to the same file by using a different serializer for each
one, but I'm not sure it produces valid xml, and I don't know how to
deserialize them.
Is what I'm trying to do possible? If not how should I go about doing this?
Any help would be greatly appreciated.