posted @ 2005-02-01 22:11 xingd 阅读(1289) 评论(0) 推荐(0) 编辑
摘要:
接下来,实现Voucher类的反序列化,代码如下: publicVoucherDeserialize(stringfilename) { BinaryFormatterformatter=newBinaryFormatter(); Vouchervoucher=null; FileStreamfs=newFileStream(fi... 阅读全文
|
||
摘要:
接下来,实现Voucher类的反序列化,代码如下: publicVoucherDeserialize(stringfilename) { BinaryFormatterformatter=newBinaryFormatter(); Vouchervoucher=null; FileStreamfs=newFileStream(fi... 阅读全文
posted @ 2005-02-01 22:11 xingd 阅读(1289) 评论(0) 推荐(0) 编辑
摘要:
前几天写了一篇.NET序列化概述性的文章,有朋友说对技术的描述不够详细,因此准备写一系列文章,以一个实例为基础,详细描述各种序列化的使用方法和注意事项。这一系列文章是为不熟悉序列化的读者准备的,已用过序列化的可以只看一下每篇中加粗的一句话,感兴趣再阅读全文。文中的示例类Voucher和VoucherItem非常简化,实际中的凭证包含更多的信息。 财务系统中经常要与凭证打交道,在这篇文章里... 阅读全文
posted @ 2005-01-29 21:29 xingd 阅读(3305) 评论(3) 推荐(0) 编辑
摘要:
ildasm /adv assembly.dll 添加/adv参数后,菜单中会多出几项,适用于.NET Framework 1.0 and 1.1。2.0下好像所有的菜单都直接显示出来了。 帮助文件和ildasm /?中都没有给出adv参数的描述。 阅读全文
posted @ 2005-01-28 19:20 xingd 阅读(2293) 评论(8) 推荐(0) 编辑
摘要:
float类型占32bit空间,只有7位精度,下面的程序 public class FloatPrecision { public static void Main() { Console.WriteLine((int)123456789F); } } 输出结果为123456792. double占64bit空间,15~16位精度,下面... 阅读全文
posted @ 2005-01-28 19:17 xingd 阅读(849) 评论(0) 推荐(0) 编辑 |
||