What does for(;;) mean in C#

c#, for-loop

Solution

It's a loop with no starting value or conditions, so it will go forever, similar to

while (true)
{
    // body...
}

You'd need to use a `break;` statement to get out of the loop.

Problem

I see the following code ``` for (;;) { //body... } ``` What does it mean?

Original source