2.8C#语言的异常(Exception)语句

try-catch

try {
} catch (可选类型) when(表达式) {
}

try-finally

try {
} finally {
}

try-catch-finally

try {
} catch (可选类型) when(表达式) {
} finally {
}

原创文章,作者:huoxiaoqiang,如若转载,请注明出处:https://www.huoxiaoqiang.com/back/csharp/7889.html

发表评论

登录后才能评论