|
Delphi |
|
Continue procedure immediately breaks any loop execution and continues the loop from the next iteration:
for i:=1 to 100 do
begin
if i=SomeIgnoredValue then Continue;
// some code here
end;
|
|
C# |
|
The continue statement passes control to the next iteration of the enclosing iteration statement in which it appears:
for (int i = 1; i <= 100; i++)
{
if (i == SomeIgnoredValue) continue;
// some code here
}
|
|
|
|
|
|
|