17,748
社区成员




public static TryCatch(Action action)
{
try
{
action();
}
catch(TestException)
{
}
catch(Exception ex)
{
MessageBox.Show(ex.Message);
}
}
TryCatch(()=>throw new TestException());
try
{
throw new TestException();
}
catch(TestException)
{
}
catch(Exception ex)
{
MessageBox.Show(ex.Message);
}