Deserialize part of a binary file

前端 未结 2 883
被撕碎了的回忆
被撕碎了的回忆 2020-12-17 01:28

Is it possible to deserialize part of a binary file?

Basically I have an object similar to below, which I serialize into a binary file.

public class          


        
2条回答
  •  猫巷女王i
    2020-12-17 01:57

    How about putting the Name and Valueinto a superclass and serializing them separately?

    Alternatively, you could maintain a Dictionary and serialize that into one file.

提交回复
热议问题