I have a code like:
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
}
I am considering goto
but I've heard many bad things about it.