Closed 3axap4eHko closed 4 years ago
The serializer can't make assumptions on how to serialize a type based on the type's inheritance. If you were to add a property to D
, then serializing the same way a dictionary is serialized would be wrong.
You need to tell the serializer how to handle that class, either by implementing IJsonSerializable
on the class or by creating and registering an ISerializer
implementation.
Describe the bug Incorrect data serialization for classes that extends Dictionary class
To Reproduce
Expected behavior If you replace class
D
toDictionary<string, object>
you will seeDesktop (please complete the following information):