simple way of continuing out of outter loop
- From: "Jon Slaughter" <Jon_Slaughter@xxxxxxxxxxx>
- Date: Tue, 1 Apr 2008 14:08:46 -0600
Say I have two nested foreach loops, is there any simple way of continuing
out of the outter most loop depending on what happens in the inner most?
e.g.,
foreach(int i in I)
{
foreach(int j in J)
if (j == 3)
break.continue;
}
where break.continue means break out of inner loop and continue in outter
loop.
I doubt such a thing exists but just curious
Thanks,
Jon
.
- Follow-Ups:
- Re: simple way of continuing out of outter loop
- From: Ben Voigt [C++ MVP]
- Re: simple way of continuing out of outter loop
- From: Jon Skeet [C# MVP]
- Re: simple way of continuing out of outter loop
- Prev by Date: Re: textbook authors: passing by ref is NOT more efficient!
- Next by Date: Re: Delegate Equal() returning false when it shouldn't?
- Previous by thread: events and backgroundworker thread
- Next by thread: Re: simple way of continuing out of outter loop
- Index(es):
Relevant Pages
|