Deserialising a collection of inherited objects

Numb

New Member
I've got an xml file with a collection that looks like this\[code\]<AbstractCollection> <ConcreteA name="Bob" age="4"/> <ConcreteB name="Tree" size="1" /></AbstractCollection>\[/code\]I know that if I use a concrete collection - i.e. the two elements were the same type - it would be easy to use the standard XML deserialisation in C#. The different types seem to make it more difficult.Is there a way to use the simple xml deserialisation to get this out, or do I have to implement deserialisation myself?
 
Back
Top