Reputation: 13
How can i serialize Nullable types with protobuf.net? This post tries to explain a few approaches: Can I serialize arbitrary types with protobuf-net?
The problem is that there seems to be a bug with the surrogate approach in relation to Nullable, which is also mentioned in the linked post. The shim property approach is not suitable for us, mainly because we have many properties of this type.
We are very keen on relying on protobuf.net for serialization as it matches our need for compact and fast serialization, but it is difficult due to this issue.
Upvotes: 1
Views: 872