RE: [protobuf] Why does protobuf-net append to a byte[] Property/field on deserialize?

2011-01-31 Thread Richard Geary
You can repro this with a trivial example with a byte[] as an initialized member field. In my particular case, it was storing some XML describing the layout of the window class (AvalonDock.DockingManager.SaveLayout/RestoreLayout), and the bug was duplicating the XML. This subsequently caused the Xm

RE: [protobuf] Serializing Dictionary

2011-01-31 Thread Richard Geary
What sort of restrictions are in the Google protobuf spec? Is this possible as a user-extension of the protobuf-net library? eg. Could I create an object surrogate, serializing the name of the derived type as a string, then dynamically read/write the type to the stream based on the type string? Or

RE: [protobuf] Support for generic surrogates, eg. Queue

2011-02-01 Thread Richard Geary
Yes, I've no problem with releasing it under the existing (Apache 2) license terms. From: Marc Gravell [mailto:marc.grav...@gmail.com] Sent: 01 February 2011 03:18 To: NYCBrit Cc: Protocol Buffers Subject: Re: [protobuf] Support for generic surrogates, eg. Queue Nice - I'm glad that was a