Closed Phloog closed 1 year ago
D'oh! Just when submitting the issue, I noticed the "Stuff" Dict only has a get accessor.
I assume there's no possibility to set contents into properties with private setters, right? I'll need to change my Example-class then.
Yes, a SET is required. MemoryPack allows asymmetric serialize (serialize only). This is because MessagePack and JSON required it. However, this may not be the case for MemoryPack. .......
Hey,
Assume the following classes:
The following code is generated by MemoryPack 1.9.13:
As you can see, the Dictionary "Stuff" is correctly deserialized; only in the very last block (at SET: and NEW:), its assignment to the target object is omitted. When debugging and stepping through the generated deserialization-method, I can see the data is correctly restored in __Stuff !
Is this a bug or do I need to change my annotations somehow?
Thanks, Tim