jessica Boisserand
✅ DataContractSerializer with polymorphisme
Hello everyone. I need help with a topic. I would like to serialize this XML file:
Here's my class that contains my database
and my generic class
and finally my Movie Class, which is a derived class of VideoDatabaseItem.
I'm having trouble serializing my list with the Movie item, for example. I feel like the inheritance isn't working properly.
I absolutely want to have a generic class for my list of items because later on, I want to be able to serialize other objects.
It would be great if one of you could help me with this topic 🙏🏻
29 replies