【发布时间】:2010-11-11 03:06:29
【问题描述】:
在这个代码示例中,有没有办法从 catch 块继续外循环?
while
{
// outer loop
while
{
// inner loop
try
{
throw;
}
catch
{
// how do I continue on the outer loop from here?
continue;
}
}
}
【问题讨论】:
-
嵌套循环只会导致绝望。
标签: c# loops while-loop continue