[protobuf] Protobuf-net - list of objects with parent reference

2014-06-09 Thread Jan Kowalski
I have a simple class with reference to parent object. All objects are in one list (even parent objects). Is it possible to keep references references after deserialization? In my code I have something like this: [ProtoContract] public class ProtoItem { [ProtoMember(1)]

Re: [protobuf] Protobuf-net - list of objects with parent reference

2014-06-09 Thread Marc Gravell
The protobuf specification doesn't have the notion of object identity. protobuf-net *does* (as an optionally enabled feature), but it doesn't currently work for list items directly, although I suspect it probably should. Since it would break the format, though, it would need explicit enabling if I