IDisposable 接口实现模板
摘要:
/// <summary> /// Demo how to implement interface IDisposable /// </summary> class DemoClass:IDisposable { public DemoClass() { } //标示当前对象是否被Dispose过 private bool disposed = false; /// <summary> /// 实现IDisposable中定义的接口方法 ... 阅读全文
posted @ 2012-10-30 19:37 笑东风 阅读(259) 评论(0) 推荐(0) 编辑