Yes it fails, and Microsoft, even though it was reported in 06, said they would fix it until what is now .Net 3.5.
People are up in arms on this issue….
But wait. There is a simple fix and the fix is not a fix because the code above is atypical in how someone actually programs and no real fix is required!
Here is how one can fix it:
In other words, don’t program empty constructs and you won’t have any problems! By simply doing work within the loop and not having an empty construct fixes the non problem.
People are up in arms that this should be fixed immediately! The nay-saying neighbobs of negativism are saying that a patch should be immediately done! Why hasn’t Microsoft fixed this. Some are suggesting that code out in the field at client sites are prone to failure and clients will be lost.
Oh, please…to reference a Forest Gump quote, “Programming is as Programming does”. If one is creating empty constructs and leaving it in code, that’s analogous to the person walking along the train tracks listening to music…who’s fault is it that they did not hear the train….hmmmm?