using (Graphics objGraphics = this.CreateGraphics) { //其它代码 } 或者用个try。。。catch。。。。finally try { } catch() { } finally { if(objGraphics != null) ((IDisposable)objGraphics).Dispose(); }
111,093
社区成员
642,554
社区内容
加载中
让您成为最强悍的C#开发者
试试用AI创作助手写篇文章吧