try
{
Debug.WriteLine("11");
}
catch
{
Debug.WriteLine("22");}
finally
{
Debug.WriteLine("33");}-------------------------------------------------------------
上面的输出为: 11 33try
{
Debug.WriteLine("11");
Error command
}
catch
{
Debug.WriteLine("22");}
finally
{
Debug.WriteLine("33");}
//-------------------------------------
输出 11 22 33
{
Debug.WriteLine("11");
}
catch
{
Debug.WriteLine("22");}
finally
{
Debug.WriteLine("33");}-------------------------------------------------------------
上面的输出为: 11 33try
{
Debug.WriteLine("11");
Error command
}
catch
{
Debug.WriteLine("22");}
finally
{
Debug.WriteLine("33");}
//-------------------------------------
输出 11 22 33
解决方案 »
- 水晶报表到底是个什么玩意?
- 关于关闭一个窗体的程序
- 为什么FormClosing事件会执行两次?
- 为什么点击GridView1_RowDeleting 没反应
- 高手赐教!!!如何附加数据库文件mdf
- 各位虾哥虾姐有理了,小弟接触c#不久,想请问如何在c#中调用一个exe程序,请不吝赐教。不胜感激!!!
- 小弟初学DOT NET,请各位前辈多多指点!
- 带参数的Sql语句的问题 在线等 很急 麻烦大哥们解决下
- Excel文件数据提交的问题
- ADO地事务和Oracle(SQLServer的区别)(内有分析代码)(越分析,越迷惑了)
- 类型“LinkButton”的控件“_ctl1”必须放在具有 runat=server 的窗体标记内?????
- 我在DataGrid中放了一个DropDownList和一个CheckBox,我想在DropDownList选中里面的值时,heckBox被选中,但因为DropDownList和CheckBox在D
{
//要执行的语句
}
catch (Exception ee)
{
throw new Exception(ee.ToString());
}
finally
{
//
}
{
//有问题的地方
}
catch
{
//出了问题怎么办}
finally
{
//不论出不出问题,最后做一下收尾工作吧
}