protobuf-net - backticks, Dictionaries & .proto files
Posted
by JosephH
on Stack Overflow
See other posts from Stack Overflow
or by JosephH
Published on 2010-03-29T04:37:39Z
Indexed on
2010/03/29
4:43 UTC
Read the original article
Hit count: 661
I'm trying to talk to a C# program that uses protobuf-net from an iphone using http://code.google.com/p/metasyntactic/wiki/ProtocolBuffers
Unfortunately the .proto file I've been given (generated from the C# source code) includes an a line that protoc is rejecting:
repeated Pair_Guid_List`1 Local = 6;
It appears that this is because the source data is a C# Dictionary, with a Guid key and a class as the value. Is there a way to cope with this better?
The protobuf-net version in use is r278.zip.
(The C# sending and receiving these protobufs all works fine, it's just when we add the iphone into the mix that this becomes an issue.)
© Stack Overflow or respective owner