Possible Duplicate:
C# Compiler optimization – Unused methods
A JIT compiler runs after the program has started and compiles the code (usually bytecode or some kind of VM instructions) on the fly (or just-in-time, as it’s called) into a form that’s usually faster, typically the host CPU’s native instruction set. A JIT has access to dynamic runtime information whereas a standard compiler doesn’t and can make better optimizations like inlining functions that are used frequently.
This is in contrast to a traditional compiler that compiles all the code to machine language before the program is first run.but my question is Does the JIT compiler eliminate empty methods? Can someone give a succinct and easy to understand description?
You can switch optimization off, even in release mode. So I think your question is: are private methods removed in optimized mode. And then the answer is no.
I think it’s widely discussed here:
C# Compiler optimization – Unused methods
(PS: that’s a first hit in google when I just copy/paste your title)