> // The following code is faster
> 
> for(int i = 0; i < 10000; ++i)
> {
>   // do anything here ... Console.WriteLine, assign i to 
> another variable,
> it doesn't matter....
> }
> 
> 
> // than this code
> 
> 
> for (int = i; i < 10000; ++i)
>   // do anything here ... Console.WriteLine, assign i to 
> another variable,
> it doesn't matter....

Weird! I compiled the code from the command line in both release and
debug modes and couldn't see any difference in the IL...

Have you tried looking at the generated IL? If it's no different, then I
would suspect the tool is doing something whacky. 

You can read messages from the Advanced DOTNET archive, unsubscribe from Advanced 
DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to