The executed by the CLR environment it is called Managed Code which can provide security Exception Handling and Memory Management (Garbage Collection). Provide Type Safe.
It becomes light weighted code.
It means while compilation activated and deactivated by garbage collection.
that's why vb.net and c# .net are managed code..