如何创建BinaryReader在使用的BinaryWriter和我自己的二进制序列? [英] How do i create my own binary serializer using BinaryReader and BinaryWriter?

查看:332
本文介绍了如何创建BinaryReader在使用的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也正在WindowsMo​​bile的工作,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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆