⚙️Common Language Runtime (CLR)
Also known as CLR, .NET Runtime, Managed Code Runtime
The .NET runtime. It runs C#, F# and Visual Basic code as one kind of code.
Think of it like
It is like a helper at a big meeting. People speak in many ways, and she puts it all in one.
Example
A team writes one part of an app in C# and one in F#. Both compile to CIL, and the CLR runs them as one program.
Why it matters
It is the engine under each .NET app, from websites to Windows tools. It is also how .NET languages work together.
Definition
Example code
console
$ dotnet new console -o Hello
$ dotnet run --project Hello
Hello, World!Common mistake
Key takeaways
- 1Runs CIL. The code .NET languages compile to.
- 2Many languages. C#, F# and Visual Basic share it.
- 3Managed code. It handles memory for you.