C
Captain Kernel
Guest
I have a simple XML format and class that lets me deserialize test files into class instances. However I then add and implement IReadOnlyDictionary<string,string> and then (must) add an empty implementation of Add (Object Data) and then rerun but the serialization returns instances that are empty.
It throws no exceptions but simply creates an unpopulated instance!
The Add never gets called (but is required, else we get an exception that's well discussed on the web).
Why would adding this interface implementation cause the deserialization to suddenly cease to work?
Note that if I do not implement the interface but simply add the Add(Object) dummy method the deserialization still works, it seems to be the interface that leads to this.
Continue reading...
It throws no exceptions but simply creates an unpopulated instance!
The Add never gets called (but is required, else we get an exception that's well discussed on the web).
Why would adding this interface implementation cause the deserialization to suddenly cease to work?
Note that if I do not implement the interface but simply add the Add(Object) dummy method the deserialization still works, it seems to be the interface that leads to this.
Continue reading...