What is MSIL?
Experience Level: Senior
Tags: .NETASP.NET MVCASP.NET WebAPIASP.NET WebFormsC#
Answer
Introduction
- MSIL stands for Microsoft Intermediate Language
- MSIL is created by .NET compiler during compilation
- MSIL is converted to machine code by JIT compiler to machine code
- During run-time (JIT compilation)
- Prior the application execution (preJIT compilation - NGen)
It can also be called
- Intermediate Language (IL) or
- Common Intermediate Language (CIL)
Why MSIL?
MSIL is CPU-independent set of instructions that can be efficiently converted to the native code.
Related C# job interview questions
Can you use multiple catch blocks in try/catch? What would be a use case for such thing?
C# JuniorWhat do you know about delegates?
.NETC# MediorWhat is JIT?
.NETASP.NET MVCASP.NET WebAPIASP.NET WebFormsC# SeniorWrite a code that takes an integer number and outputs its digits to the console.
.NETC#Code challenge MediorWhat is variable capturing good for and how does it work?
.NETC# Senior