What is an un/managed DLL? What is un/managed code?

Andrei picture Andrei · Sep 28, 2010 · Viewed 15.6k times · Source

Could someone please explain to me what an un/managed DLL is? And what is un/managed code?

Answer

elsni picture elsni · Sep 28, 2010

Unmanged code will be compiled to machine language to run directly on the hardware.

Managed code will be compiled to a virtual machine called CLR (Common Language Runtime), and compiled to machine language on start by the JIT (Just in time compiler). THE CLR can be compared to the java virtual machine, it is the same concept.