while (foo() == true)
{
foreach (var x in xs)
{
if (bar(x) == true)
{
//"break;" out of this foreach
//AND "continue;" on the while loop.
}
}
//If I didn't continue,do other stuff.
}
我有点坚持如何做到这一点.
更新:我修正了问题.我遗漏了一个事实,即如果我不打电话给继续,我需要处理其他事情;在while循环中.
对不起,我没有意识到我曾两次使用“某事”这个词.