Maintain object references through Serialize/Deserialize

后端 未结 4 1047
渐次进展
渐次进展 2021-01-20 19:57

When serializing, I would like to serialize an object only once, then any references to that object should be serialized as a reference to the object. This is because, when

4条回答
  •  囚心锁ツ
    2021-01-20 20:38

    You will have to do that by giving the objects identifiers other than their object reference.

    An object's reference is essentially it's pointer. Since you cannot manipulate pointers directly in safe code must give the object some other unique name.

提交回复
热议问题