Home > DeveloperSection > Interviews > What is the difference between Managed code and unmanaged code?

Posted on    January-25-2014 12:08 AM

 C# C# 
 1 Answer(s)
  868  View(s)
Rate this:

Sumit Kesarwani

Total Post:782

Posted on    January-25-2014 1:00 AM

 Managed Code: Code that runs under a "contract of cooperation" with the common language runtime. Managed code must supply the metadata necessary for the runtime to provide services such as memory management, cross-language integration, code access security, and automatic lifetime control of objects. All code based on Microsoft intermediate language (MSIL) executes as managed code.

Un-Managed Code: Code that is created without regard for the conventions and requirements of the common language runtime. Unmanaged code executes in the common language runtime environment with minimal services (for example, no garbage collection, limited debugging, and so on).

Don't want to miss updates? Please click the below button!

Follow MindStick