李颖 · 2005-01-24 07:44:28 · 阅读: 704 代码是这样写的 stream.Close(); stream = null; close方法产生了exception,所以 stream = null 没有执行到 你的意思是说,如果改成 tr { stream.Close(); } finally { stream = null; } 那么这个对象会被释放?不会保留在垃圾队列中?