A
alan
Actually, what is the different bertween these other than syntax?
Thanks!
Thanks!
"Jeffrey Tan[MSFT]" said:Hi Alan,
Actually, programmers will focus on the performance difference. If your
concern is performance difference, this article may help you:
http://builder.com.com/5100-6373-1027686.html
Normally, the C# and VB.net difference white paper is available:
http://support.microsoft.com/?kbid=308470
Hope this help you. Have a nice day!
Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
I dont see how there can be a performance difference (with VB Option
Strict on) because they both compile to IL... and I've noticed that
they typically compile to the same IL...
David said:The point of the article was that they don't compile to the same IL, but
it was very anecdotal and was written about the beta. Mostly he found
some extra nops in VB.NET, which are unlikely to have any real
performance issues, and he didn't seem to realize that C# and VB have
different rules for loops which require slightly different IL.
Jay B. Harlow said:I don't have the link handy, as far as I know the NOPs are only inserted in
Debug builds to allow VB.NET to put break points on lines that you would
normally not be able to put break points on.
I'm looking at the IL for a release build & I see no NOPs, while the Debug
build has numerous NOPs.
Otherwise I agree the NOPs would impact the JIT.
I won't disput that! ;-)It's not just NOPs though. Recently on either the CLR or C# mailing
list (I can't remember offhand) someone pointed out a case where VB.NET