Managed Code & Unmanaged Code
Managed Code
Code executed under the control of the CLR is called managed code. For example, any code written in C# .NET or Visual Studio.NET is a managed code.
The benefits of Managed Code include programmer‟s convenience and enhanced security. Managed code is designed to be more reliable and robust than unmanaged code examples are Garbage Collection , Type Safety etc. When we publish the website in IIS (Internet Information Services) the source code will be converted into binary code (machine code).
Unmanaged Code:
Applications that do not run under the control of the CLR are said to be unmanaged, and certain languages such as C++ can be used to write such applications