We can do:
using (Stream s ..)
and:
for (int i ...)
Why can\'t we as well do something like:
As opposite to the 'for' loop, 'while' doesn't have a initialization part. The 'for' syntax looks like this:
for ( initializer; conditional expression; loop expression)
{
statements to be executed
}
and the 'while' looks like this:
while (condition)
{
statements to be executed
}
The closest thing to your request is:
int i;
while ((i = NextNum()) > 0) { ... }