Without the null check, the finally block could throw its own NullReferenceException, but throwing exceptions in finally blocks should be avoided if it is possible.

 
  • 如果没有nullNothingnullptr空引用(在Visual Basic中为Nothing)检查,finally块可能引发自身的NullReferenceException,但是应当尽可能避免在finally块中引发异常。
今日热词
目录 附录 查词历史