8.9. The Intermediate Language

When we compile a C# program, the code generated does not execute; it is not a machine assembly language. Rather it is a machine-independent intermediate language (IL) representation of our program.[4]

[4] For details of the intermediate language beyond the discussion in this section, see The IL Assembly Language Programmers' Reference and The MSIL Instruction Set Specification within the Program Files/Microsoft.NET/FrameworkSDK/Tool Developers Guide/docs folder.

All .NET languages are compiled into the IL. This means that at the IL level, all language code looks pretty much the same. There are two primary benefits to compiling all .NET languages into a common intermediate language. The first, of course, is real ...

Get C# Primer: A Practical Approach now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.