私は次のようなコードを持っています:
while(condition)
{
foreach(string s in list)
{
switch(j)
{
case 1:
//do something
continue;//can I break out of foreach here?
case 2:
//do another
continue;//break
..other cases;
}
//do some stuff
}
//do some stuff
}
検討中ですgoto
が、悪い噂をよく耳にします。