Microsoft Intermediate Language (MSIL)

Microsoft .NET Framework, ASP.NET, Visual C# (CSharp, C Sharp, C-Sharp) Developer Training, Visual Studio


Jump to: navigation, search

Microsoft Intermediate Language (MSIL) is the assembly language output by .NET compilers—C#, VB .NET, etc.

Learning MSIL affords the programer the opportunity to understand things that are normally hidden while working in C# or VB NET. Although we seldom—if ever—need to write programs directly in MSIL, there are difficult cases when it can be both enlightening and useful to examine the MSIL code in ILDasm to see what is happening behind the curtain.

The Intermediate Language Assembler (ilasm) that ships with the .NET Framework SDK allows programmers to view MSIL code in human-readable format. Using this utility, the MSIL code of any .NET executable file—.DLL, .EXE—can be inspected.

The Intermediate Language Disassembler (ildasm) disassembles MSIL code back into assembly language source code; so, it can be viewed or modified.


Personal tools