I\'m working on some C# code that has loop syntax that I\'ve never seen before:
for (;;) { //Do some stuff }
What does a for loop without
The syntax of a for loop is thus:
for
for (condition; test; action)
Any one of those items can be omitted (per the language spec). So what you've got is an infinite loop. A similar approach:
while (true) { // do some stuff }