What's the difference between Do While where the statement is the first line in the loop block and just the single While in VB.NET?
They don't seem to offer any difference in behavior.
In Visual Basic these are identical:
Dim foo As Boolean = True
While Not foo
Debug.WriteLine("!")
End While
Do While Not foo
Debug.WriteLine("*")
Loop
These are not; the do
executes once:
Dim foo As Boolean = True
While Not foo
Debug.WriteLine("!")
End While
Do
Debug.WriteLine("*")
Loop While Not foo