Managed Code and Unmanaged Code

The cods runs under the environment of the .NET runtime.It must supply the metadata necessary for the runtime to provide service such as mormory management,cross lanaguage Integration.All code based on MSIL executes as managed code.

Unmanaged Code:

Code that is created without regrad for the conventions and requirements od the CLR.Unmanaged code executes in the CLR environment with minimal services