C#: Break vs. Continue in Foreach Loops
Tuesday, March 16th, 2010A C# Quick Tip: You’ve probably seen ‘break’ before in Switch Case statements, but it also plays an important role in Foreach Loops.
To break completely out of a foreach loop (foregoing all the remaining loops), use: break;
To go to the next iteration in the loop, use: continue;
Popularity: 1%



With Microsoft’s 

