In .NET, will empty method calls be optimized out? | Given an empty method body, will the JIT optimize out the call (I know the C# compiler won't). How would I go about finding out? What tools should I be using and where should I be looking?


Since I'm sure it'll be asked, the reason for the empty method is a preprocessor directive.




---


@Chris:
Makes sense, but it could optimize out calls to the method. So the method would still exist, but static calls to it could be removed (or at least inlined...)


@Jon:
That just tells me the language compiler doesn't do anything. I think what I need to do is run my dll through ngen and look at the assembly.