C# IDispose使用实例-牛翰网

C# IDispose使用实例

using System; using System.ComponentModel; //下面的例子演示了如何创建 //实现IDisposable接口的资源类 //和IDisposable。处理方法。 public class DisposeExample { //实现IDisposable的基...