Little drops on C# Interview Questions series
The intention behind this series is to answer with a little bit of context or examples of some of the most common C# interview questions.
Today we briefly explain what is Intermediate Language
So .NET != C#? How it works then?
Precisely, I have seen many people getting this mistakenly, .NET is a platform for CLR languages to be compiled(Common runtime language), with this in mind to compile anything we have to think it into 3 steps:
So IL is the half compiled code that is interpreted by JIT into machine code.
Why do I need to know it
If you are to specialize in something do it right and know how it works, not only for interviews, knowing one or two levels of abstractions besides your favourite language enables you to solve more complex issues in the future.
Ok, can I see the IL code?
For sure, the are many great tools to visualize and interact with IL, like:
- Feel more suggestions received by feedback
- SharpLab where you can go even further analysing IL and even ASM both kindly suggested by Alberto Monteiro
- Also, IDEs usually have nice integrations, like Visual Studio or Jetbrains Rider my personal choice:
Docs kindly suggested by Marcus Vinicius
To go deeper
This is of course just a brief introduction on the topic, for further reading I recommend:
Top comments (0)