using(Bitmap bmp = new Bitmap()){}这样可以的,但如果是Bitmap[] 错误Error 1 'System.Drawing.Bitmap[]': type used in a using statement must be implicitly convertible to 'System.IDisposable' 怎么实现实现IDispose 接口的类?给个简单的例子
我最后用了List<Bitmap> bmp = new List<Bitmap>();然后在加一句 bmp.Clear();,不知道这样是不是清理了呢?
null有GC管理
怎么实现实现IDispose 接口的类?给个简单的例子