With Protobuf-net, does it allow deserialization reuse existing instances if they are the same?
Posted
by Stecy
on Stack Overflow
See other posts from Stack Overflow
or by Stecy
Published on 2010-06-17T12:36:06Z
Indexed on
2010/06/17
22:33 UTC
Read the original article
Hit count: 267
deserialization
|protobuf-net
I'm using Protobuf-net. Suppose I have a list of Gizmo objects serialized and that each gizmo object reference a Gazoo object. The Gazoo object might be the same object referred by several Gizmo objects.
How would deserialization work in this situation?
Would I get more than one copies of Gazoos for the same referred one in the gizmo objects?
What I would expect would be one copy of Gazoo for all the duplicates in the serialized data.
© Stack Overflow or respective owner