[protobuf] Newbie here.. pass serializer functions to protobuf-net at runtime?

2014-08-11 Thread jens . barthel
Hi everyone, My problem is, that i can only determine at runtime how to serialize a certain class, called A for clarity. Accordingly, I was hoping for a way to tell the RuntimeTypeModel how to serialize A through a function/method call, for example by passing a delegate to it, or sth. similar.

Re: [protobuf] Newbie here.. pass serializer functions to protobuf-net at runtime?

2014-08-11 Thread Marc Gravell
This is specific to protobuf-net. The library does not currently expose any custom serialization extension point; to do that in a way that is genuinely useful, while not allowing the caller to break the wire format, is quite tricky. To date: it hasn't been necessary. If you can clarify *why* you