摘要:
突然遇到一个疑问:当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 阅读全文
posted @ 2010-12-13 09:42
似水无痕2010
阅读(156)
评论(0)
推荐(0)
浙公网安备 33010602011771号