Menu

CLR, CTS, CLS: what each one does (.NET Internals)
πŸ“°

CLR, CTS, CLS: what each one does (.NET Internals)

DEV Community: dotnetΒ·DIVAKAR UPADHYAYΒ·3 days ago
#utbKG1aC
#devtodotnet#devto#dev#system#code
Reading 0:00
15s threshold

πŸ‘‰ 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,…

Continue reading β€” create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.