Is C# interpreted or compiled?
I thought that C# generated compiled code (by JIT), but I have latel开发者_如何学Goy discovered that I can edit code while debugging mode in C# (VS 2008). Does that mean that C# is interpreted?
It's a trick. The C# compiler/debugger/IDE is just smart and can compile code on the fly while you're debugging.
C# is compiled to IL which is then JIT'ed at runtime into instructions specific to the processor the program is running on.
Editing code while debugging C# is a feature of VS2008 which more than likely compiling any changes in the background
精彩评论