Syntax aside, what is the difference between
try { } catch() { } finally { x = 3; }
and
try { } catch() { } x = 3;
16条回答 有刺的猬 (楼主) 2020-12-30 21:15 Any code in the finally is ran in the even in the event of an unhandled exception. Typically the finally code is used to clean up local declarations of unmanaged code using .dispose(). 0 讨论(0) 查看其它16个回答 发布评论: 提交评论 加载中... 自定义标题段落格式字体字号代码语言点击上传x 验证码 看不清? 提交回复
Any code in the finally is ran in the even in the event of an unhandled exception. Typically the finally code is used to clean up local declarations of unmanaged code using .dispose().
热议问题