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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.