如何创建BinaryReader在使用的BinaryWriter和我自己的二进制序列? [英] How do i create my own binary serializer using BinaryReader and BinaryWriter?
问题描述
我基本上要创建自己的二进制序列化类,有点什么的BinaryFormatter
类在做什么。如何使用 BinaryReader在
和的BinaryWriter
类来做到这一点。
我不希望任何code,但一个想法。
谢谢。
PS:请不要告诉我用的BinaryFormatter
I basically want to create my own binary serialization class, kinda what BinaryFormatter
class is doing. How can i use BinaryReader
and BinaryWriter
classes to accomplish this.
I don't want any code but an idea.
Thanks.
PS: Please don't tell me to use BinaryFormatter
.
推荐答案
要了解如何序列化可以实现,你可以看看的 sharpserializer 。该人士$ C $ C可以发现这里。在code也正在WindowsMobile的工作,Silverlight的。
To see how serialisation could be implemented you can look at the c# sourcecode of sharpserializer. The sourcecode can be found here. The code also works under windowsmobile, silverlight.
这篇关于如何创建BinaryReader在使用的BinaryWriter和我自己的二进制序列?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!