阅读背景:

如何使用.NET 2.0捕获使用块中的异常?

来源:互联网 

I'm trying to leverage the using block more and more these days when I have an object that implements IDisposable but one thing I have not figured out is how to catch an exception as I would in a normal try/catch/finally ... any code samples to point me in the right direction?I'm trying to leverage the using block more and




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: