Closed GoogleCodeExporter closed 9 years ago
Because protobuf-net, along with things like DataContractSerializer and
XmlSerializer etc, does not simply work on fields. It needs *information* about
which fields to serialize (although there *is* an implicit option, I try not to
recommend it). For example:
[ProtoMember(3)] private readonly List<Node<T>> children = new List<Node<T>>();
[ProtoMember(1)] private readonly string key;
[ProtoMember(2)] private T value;
Which should then work fine.
Marc
Original comment by marc.gravell
on 21 Jun 2012 at 8:39
Hi I've tried to use ProtoMember but it doesn't work. I don't know what to do.
I want to use protobuf because BinaryFormatter is too slow. Could you help me?
Thanks
Original comment by matteo.p...@gmail.com
on 21 Jun 2012 at 8:43
To avoid duplication, this is being closed moving to
http://stackoverflow.com/questions/11134370/proto-buf-net-and-serialization
Original comment by marc.gravell
on 21 Jun 2012 at 9:37
Original issue reported on code.google.com by
matteo.p...@gmail.com
on 21 Jun 2012 at 8:16