.Net Interview Question: What is a Managed Code?

Managed code runs inside the environment of Common Language Runtime (CLR) i.e. .NET runtime. In short, all Intermediate Language (IL) are managed code. However, if you are using some third party software example VB6 or VC++ component they are unmanaged code, as .NET runtime (CLR) does not have control over the source code execution of these languages.