08 2004 档案

将一个流输出到多个流中
摘要:/// /// MultiTextWriter 的摘要说明。 /// 通过重写Write和WriteLine实现同时向多个流写入数据。 /// /// public class MultiTextWriter : System.IO.TextWriter { public System.IO.TextWriter[] m_Writers; public MultiTextWriter( ... 阅读全文

posted @ 2004-08-17 23:21 kingdom 阅读(356) 评论(0) 推荐(0)

实现将Stream输出到Control的Text属性
摘要:/// /// TextBoxLogger 的摘要说明。 /// 实现将Control文本输出象文件一样。 /// public class ControlStreamWriter : System.IO.TextWriter { private System.Windows.Forms.Control m_Control; public ControlStreamWriter( Sys... 阅读全文

posted @ 2004-08-17 23:20 kingdom 阅读(232) 评论(0) 推荐(0)

对ICSharpZipLib的包装类,实现常用数据和文件的压缩
摘要:using System;using System.IO;using ICSharpCode.SharpZipLib.Zip;using ICSharpCode.SharpZipLib.GZip; namespace Utility{ public delegate void ZipEventHandler( string filename , long compressedSize , long... 阅读全文

posted @ 2004-08-17 23:14 kingdom 阅读(384) 评论(0) 推荐(0)

初来乍到,送大家一个处理缓冲的设计
摘要:初来乍到,送大家一个处理缓冲的设计 大家都是高手,我就直接送代码好了。该设计可以有很多变种,比如可以使用多种的Type。这个根据需要对结构进行调整即可。 public interface IBufferItem { bool Used{ get;set;} } /// /// BufferStorage 的摘要说明。 /// public class BufferStorage { p... 阅读全文

posted @ 2004-08-17 23:11 kingdom 阅读(204) 评论(0) 推荐(0)

初来乍到,送大家一个处理缓冲的设计
摘要:大家都是高手,我就直接送代码好了。 public interface IBufferItem { bool Used{ get;set;} } /// /// BufferStorage 的摘要说明。 /// public class BufferStorage { private static readonly string m_InterfaceName = typeof( IBuf... 阅读全文

posted @ 2004-08-17 16:04 kingdom 阅读(312) 评论(3) 推荐(0)

导航