hi,
how does someone give control to an outermost loop from an inner loop using break or continue? i've digged up on c# manual but it seems they don't support it like java. i would be glad if someone would give me a work-around in a structured way..
the problem:
Code:
for(int y=height; y > 0;y--)
{
someLabel:
for(int x=0; x < width;x++){
if(somthing){
for(int x1=circle.Center.X - 4; x1 > 0;x1--){
for(int y1=0;y1 < circle.Center.Y - 4;y1++){
if(anotherThing){
return true;
}
else{
//here i want to transfer the control to someLabel
}
}
}
}
}
}
in java, we could do a
Code:
continue someLabel;
or
break someLabel;
could someone help with achieving this in c# without much hassle?
thanks a lot.