With Protobuf-net, does deserialization allow reuse of existing instances if they are the same?

I am using Protobuf-net. Suppose I have a list of Gizmo objects serialized and that each gizmo object references a Gazoo object. A Gazoo object may be the same object that is transmitted by several Gizmo objects.

How would deserialization work in this situation?

Did I get several copies of Gazoev for the same gizmo mentioned in the objects?

I would expect that there will be one instance of Gazoo for all duplicates in serialized data.

+3
source share
1 answer

, Google, - , , - . , "v2", / - ( ), -. , , protobuf-net < === > protobuf-net.

- , , .


: protobuf-net v2, , .

+6

Source: https://habr.com/ru/post/1750486/


All Articles