Skip to main content
The 2024 Developer Survey results are live! See the results

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • I decompiled it and saw the IL code, I am not very familiar with MSIL code, but I think the if clause is still there. Commented Apr 23, 2011 at 16:21
  • @CuiPengFei: The "if (false)" statement is probably going to be optimized by the JIT compiler then. Not all optimizations need to be made to IL code. The compiler may just let the known JIT optimizations be made by JIT compiler. Commented Apr 24, 2011 at 0:43
  • 1
    When you start debug session from VS it suppresses JIT optimization. I can reproduce an issue even if Suppress JIT optimization on module load (Managed only) settings enabled for my VS. It means that JIT optimization has nothing to do to this behavior.
    – Dennis
    Commented Apr 24, 2011 at 0:52