π Full lesson with practice questions on DevLadder (free, lesson 2 of 11 in the .NET Internals: CLR, CTS, CLS, IL, JIT, Memory Management & Garbage Collection course)
CLR responsibilities:
Component Job
Class loader Loads assemblies and types, builds MethodTables
JIT compiler IL β native code
Garbage collector Allocates and frees managed memory
Type checker / verifier Type safety: no invalid casts or reading random memory
Exception manager Structured exception handling across frames and languages
Thread support Managed threads, thread pool, synchronisation
Security Type safety, (Framework: Code Access Security, removed in Core)
Interop P/Invoke, COM interop, marshalling
Debugging / profiling APIs Debuggers, profilers, diagnostics
CTS: the type system all languages share:
System.Object βββ Value types (System.ValueType): int, double, bool, char, decimal, DateTime, struct, enum (System.Enum) βββ Reference types: class, string, array (System.Array), delegate (System.Delegate), interface,β¦