Can anyone give me an example or point me to a resource on how to use Protobuf-Net to serialize/deserialize some of the bulit-in system classes?
Specifically I’m just trying to serialize/deserialize the base Exception class and all other exception classes that inherit from it. Will I have to create a new RunTypeModel that specifies every possible exception class that I will ever need to serialize, or can I somehow tell Protobuf-Net to serialize them all the same way without listing every single one?
Any help is very appreciated since I am brand new to Protobuf-Net and I’m still trying to understand it all.
protobuf-net is designed to serialize DTO models, but not exceptions – very similar to XmlSerializer etc (but binary rather than xml, obviously). Serialising exceptions is not currently built in. It may be possible to hack some things, but this isn’t really a designed feature.