Bug #2768
Wrong return of NullConverter
Status: | Resolved | Start date: | 09/28/2018 | |
---|---|---|---|---|
Priority: | High | Due date: | ||
Assignee: | - | % Done: | 100% | |
Category: | C# | |||
Target version: | - |
Description
In my oppinion a bug.
Instead of returning null while deserializing which is obviously not an object, it will now return Null.Instance, which is the singleton of the Null type.
Imho a better design, since an event should have a Data object even if it represents null. Using an event to serialize uses also Null, so why not while deserializing...
Associated revisions
Change the return of the NullConverter
Thus the converters deserialization is like the serialization and
uses the Null instance instead of just null.
fixes #2768
Signed-off-by: Johannes Wienke <languitar@semipol.de>
History
#1 Updated by S. Barut over 5 years ago
- Status changed from New to Resolved
- % Done changed from 0 to 100
Applied in changeset rsb-net|531bea667a610c66de41a606699352a547da7ef4.