Possible Duplicate:
What does “for(;;)” do in C#?
what does
for (; ; )
{
// do something
}
mean in c#?
Isn’t there supposed to be (initializer, condition, iterator) ?
I saw an example in a book that uses nothing inside the contents of the for loop.
That would create an unconditional (infinite) loop which has no initializer or iterator.
same as
You’ll have to use
break;to get out of the loop.