Managed Code

What Does Managed Code Mean?

Managed code is a scheme applied by Microsoft to some high-level programming languages in order to have their execution managed by the .Net Framework Common Language Runtime.


The core of this is a contract of cooperation between the runtime and the natively executing code which states that the runtime may stop an executing CPU in order for it to retrieve the information which is specific to that current address the CPU is executing. This is to ensure type safety, array bound and index checking, garbage collection and exception handling.

Techopedia Explains Managed Code

Managed code refers to code that has been written using any one of the high-level programming languages supported for use with the Microsoft .Net Framework. All of these languages share a unified set of class libraries which can then be encoded into an Intermediate Language (IL). A run-time aware compiler is used to compile the intermediate language into a native executable code which can be run within the managed execution environment. This will ensure that there will always be proper array bound and index checking, as well as proper garbage collection and error handling.

Many typical programming mistakes can be avoided using managed code through compiling in the managed execution environment. Small and tedious tasks such as safety checks, destruction of unused objects and memory management are already done automatically.

Programming languages supported:

  • C++
  • C#
  • J#
  • Microsoft Jscript .Net
  • Microsoft Visual Basic .Net
  • Other languages which support the .Net framework

Related Terms

Latest Software Development Terms

Related Reading

Margaret Rouse

Margaret Rouse is an award-winning technical writer and teacher known for her ability to explain complex technical subjects to a non-technical, business audience. Over the past twenty years her explanations have appeared on TechTarget websites and she's been cited as an authority in articles by the New York Times, Time Magazine, USA Today, ZDNet, PC Magazine and Discovery Magazine.Margaret's idea of a fun day is helping IT and business professionals learn to speak each other’s highly specialized languages. If you have a suggestion for a new definition or how to improve a technical explanation, please email Margaret or contact her…