private void button1_Click(object sender, EventArgs e)
{
try
{
string s = "";
int i = 1 / int.Parse(s);
}
catch (Exception ex)
{
throw new Exception(ex.Message);
}
finally
{
MessageBox.Show("Test");
}
}
先执行try块 > Catch的Exception 得到 EX > 执行Finally块 > 再到 throw new exception