C# try catch finally
2021-01-07 02:29
标签:bsp exce cat console catch except mamicode load http 情形1: 情形2: 情形3: 情形4: 情形5: C# try catch finally 标签:bsp exce cat console catch except mamicode load http 原文地址:https://www.cnblogs.com/qinruijie/p/13156895.htmltry
{
int i = 0;
i = int.Parse("t");
Console.WriteLine("Try");
}
catch (Exception e)
{
Console.WriteLine("Catch");
}
finally
{
Console.WriteLine("Finally");
}
Console.WriteLine("End");
try
{
int i = 0;
i = int.Parse("t");
Console.WriteLine("Try");
}
finally
{
Console.WriteLine("Finally");
}
Console.WriteLine("End");try
{
int i = 0;
i = int.Parse("t");
Console.WriteLine("Try");
}
catch (Exception e)
{
Console.WriteLine("Catch");
}
Console.WriteLine("End");try
{
int i = 0;
i = int.Parse("12");
Console.WriteLine("Try");
}
catch (Exception e)
{
Console.WriteLine("Catch");
}
finally
{
Console.WriteLine("Finally");
}
Console.WriteLine("End");int i = 0;
i = int.Parse("t");
Console.WriteLine("End");
文章标题:C# try catch finally
文章链接:http://soscw.com/index.php/essay/40612.html