The way we serialize a map<String, String> is this:

1) We define a MappedPair message like this:

message MappedPair {
 string key=1;
 string value=2;

2) Then we define a MappedPairList message, that's just a repeated

3) Then we iterate through our Map<String, String> to convert it to a
MappedPairList, and serialize that.

Since you're mapping serialized objects, your task is a bit more
difficult, but I'm sure there's a way to do it.

-- Miguel Munoz

On Jan 29, 8:03 am, NYCBrit <> wrote:
> Is it possible to serialize a Dictionary<string,object> where all the
> objects are pointing to classes marked up with [ProtoContract]?

You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group at

Reply via email to