建议的做法:
catch (OutOfMemoryException exception3)
{
this._activeConnection.Abort(exception3);
throw;
}
catch (StackOverflowException exception2)
{
this._activeConnection.Abort(exception2);
throw;
}
catch (ThreadAbortException exception)
{
this._activeConnection.Abort(exception);
throw;
}
对捕获的异常,进行处理时捕获才有意义,否则就没有必要写catch块,让程序把异常抛出去才是正确的做法。