In .NET, what does the Common Language Runtime (CLR) mainly provide?
Correct answer C. A managed execution environment with memory management, type safety and exception handling
The CLR is the virtual machine at the heart of .NET. It loads assemblies, compiles intermediate code to native code, manages memory through the garbage collector, enforces type safety and handles exceptions and threads. Code that runs under its control is called managed code. NuGet, visual designers and databases are separate tools and products, not runtime services.
Answer checked How we write and check questions
Discussion