wuyong

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2006年12月31日

摘要: //1.普通写法//2.忽略字节的写法//3.忽略转换的写法 using (Stream stream = new MemoryStream()) { byte[] bytes1 = UnicodeEncoding.Unicode.GetBytes(s); byte[] bytes2 = Bi... 阅读全文
posted @ 2006-12-31 17:43 吴勇 阅读(211) 评论(0) 推荐(0) 编辑

摘要: 格式化程序是一个知道如何将任何对象写到一个流中的对象。IFormatter using System.Runtime.Serialization;using System.Runtime.Serialization.Formatters;using System.Runtime.Serialization.Formatters.Binary;using System.Runtime.Seriali... 阅读全文
posted @ 2006-12-31 16:35 吴勇 阅读(198) 评论(0) 推荐(0) 编辑