[protobuf] Protobuf-net v2: what happened to Serializer.Serialize(), Deserialize(), etc?
I am trying to upgrade to v2, but all of the methods of the Serialize class are gone except for FlushPool() and a delegate called TypeResolver. Where did all the other methods go? -- You received this message because you are subscribed to the Google Groups Protocol Buffers group. To unsubscribe from this group and stop receiving emails from it, send an email to protobuf+unsubscr...@googlegroups.com. To post to this group, send email to protobuf@googlegroups.com. Visit this group at http://groups.google.com/group/protobuf. For more options, visit https://groups.google.com/groups/opt_out.
[protobuf] Does protobuf-net have any known problems with nested dictionaries?
I have the following member of a class: public SerializableDictionaryint, SerializableDictionaryint, int _test = new SerializableDictionaryint, SerializableDictionaryint, int(); [ProtoMember(112, OverwriteList = true)] public SerializableDictionaryint, SerializableDictionaryint, int SerializedData2 { get { _test.Add(1, new SerializableDictionaryint, int()); return _test; } set { _test = value; } } When I serialize it, I can confirm that it gets the proper dictionary with one entry: a key and a value : [1, SerializableDictionary]. However when I deserialize it, the dictionary's sole entry only has the key: [1, null]. Does anyone know why the value would get lost? Are nested dictionaries not supported? Thanks, Dave -- You received this message because you are subscribed to the Google Groups Protocol Buffers group. To unsubscribe from this group and stop receiving emails from it, send an email to protobuf+unsubscr...@googlegroups.com. To post to this group, send email to protobuf@googlegroups.com. Visit this group at http://groups.google.com/group/protobuf. For more options, visit https://groups.google.com/groups/opt_out.
Re: [protobuf] No suitable Default Object encoding found
That was it; I finally found the object and changed it to be a more specific type. Thanks! On Monday, September 16, 2013 6:23:11 PM UTC-4, Marc Gravell wrote: This is specifically a protobuf-net question. I am guessing that somewhere in your model is a property / field declared simply as object. That isn't enough information for ptotobuf-net to work with, because the protobuf data format doesn't include type metadata. It would have no way of recreating the object during deserialization. There *is* some implementation-specific support for spoofing this, but I would need a bit more context before advising this route - my default answer would be make the model more specific. If you can share details of the model (here, or direct to me by email if you can't drop it on a public forum) I may be able to advise further. Marc (protobuf-net) On 16 Sep 2013 22:50, David Deutsch da...@reverenddave.comjavascript: wrote: Hello, I am getting this error when trying to serialize an object that has quite a complex hierarchy. I am guessing that this error is due to a member of a class I am serializing not having its type marked with the [ProtoContract] attribute. If this assumption is correct, is there any way to get more detailed info on which class is causing the exception? Or am I totally off as to what this error means? Thanks, David -- You received this message because you are subscribed to the Google Groups Protocol Buffers group. To unsubscribe from this group and stop receiving emails from it, send an email to protobuf+u...@googlegroups.com javascript:. To post to this group, send email to prot...@googlegroups.comjavascript: . Visit this group at http://groups.google.com/group/protobuf. For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups Protocol Buffers group. To unsubscribe from this group and stop receiving emails from it, send an email to protobuf+unsubscr...@googlegroups.com. To post to this group, send email to protobuf@googlegroups.com. Visit this group at http://groups.google.com/group/protobuf. For more options, visit https://groups.google.com/groups/opt_out.
[protobuf] protobuf calling getter on deserialization?
I know this is a long shot, but is there any reason protobuf-net would call the getter of a property on deserialization, and not the setter? Most of my properties serialize and deserialize fine, but for one particular property only the getter is called, and thus deserialization fails. -- You received this message because you are subscribed to the Google Groups Protocol Buffers group. To unsubscribe from this group and stop receiving emails from it, send an email to protobuf+unsubscr...@googlegroups.com. To post to this group, send email to protobuf@googlegroups.com. Visit this group at http://groups.google.com/group/protobuf. For more options, visit https://groups.google.com/groups/opt_out.
[protobuf] No suitable Default Object encoding found
Hello, I am getting this error when trying to serialize an object that has quite a complex hierarchy. I am guessing that this error is due to a member of a class I am serializing not having its type marked with the [ProtoContract] attribute. If this assumption is correct, is there any way to get more detailed info on which class is causing the exception? Or am I totally off as to what this error means? Thanks, David -- You received this message because you are subscribed to the Google Groups Protocol Buffers group. To unsubscribe from this group and stop receiving emails from it, send an email to protobuf+unsubscr...@googlegroups.com. To post to this group, send email to protobuf@googlegroups.com. Visit this group at http://groups.google.com/group/protobuf. For more options, visit https://groups.google.com/groups/opt_out.