The Common Language Runtime Environment

The CLR is an execution engine for running managed code. You should think of it as a controlled runtime environment. The CLR manages just about every aspect of how your managed code is loaded and run. A few examples will demonstrate its pervasiveness.

The CLR is responsible for loading your assemblies and allocating the memory required for your classes and objects. After your code has been loaded and execution begins, it continues to monitor the execution of all managed code so as to provide services and ensure that nothing out of the ordinary occurs. For example, when an application has finished using an object, the CLR is responsible for reclaiming the object's memory through an internal mechanism known ...

Get Building Applications and Components with Visual Basic .NET now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.