摘要:
突然遇到一个疑问:当try...catch...finally同时存在的时候,怎样才能跳出catch,而不执行finally里面的语句,我做了如下两种测试(return和goto),均发现finally无论什么情况下都一定会执行的。如下:using System;using System.Collections.Generic;using System.Text;namespace ConsoleApplication2{ class Program { static void Main(string[] args) { Demo("3.5"); } static void Demo(stri 阅读全文