Closed Myonmu closed 7 months ago
You probably need a type descriminator to do this.
let me know if you need more assistance. If you do, please post the code for creating your deserializer.
You probably need a type descriminator to do this.
let me know if you need more assistance. If you do, please post the code for creating your deserializer.
That worked! Thanks!
Great! I’ll close this issue then.
Hi,
I am fairly new to the library and I am trying to serialize and deserialize a list of types derived from a base type, consider this example:
And the class I would like to serialize contains a field :
public List<BaseType> list
.The desired output is like this:
The default serialization actually works and outputs result as desired, but deserialization isn't. The list is empty after default serialization. I would like to know how this could be achieved?