Expert .NET 2.0 IL Assembler

If you want to know how .Net Framework works internally then there is very good book by Serge Lidin – Expert .NET 2.0 IL Assembler. Serge Lidin is author of IL Assembler, IL Disassembler. He is also one of those guys who wrote IL Assembler language specification. This book is excellent guide to understanding how .NET Framework internally works, how code is compiled and executed and what are expectations for compilers.

My review

Expert .NET 2.0 IL Assembler
Expert .NET 2.0 IL Assembler

Although the books concentrates more on IL Assembler, it gives a very good review how lower layers of .Net Framework work and how these layers are built. For beginners this book is too heavy reading I think, because this book is fun if you have very good knowledge of .Net Framework. Those who are unfimiliar with IL can start with it using Visual Studio like suggested in my blog post .Writing IL code on Visual Studio.

The book is published many years ago but in big part it holds true for newer .NET versions like 4.0 and 4.7 as not much is changed in basic concepts of .NET Framework.

If you don’t know what is IL and you want to see how IL assembly language look then take a look at posting C# and var keyword. Second block of code there is in IL assembly language. Looks horrible but it is not so hard if you study it a little bit.

For me the most interesting topics were about how different .Net language compilers behave in different situations and what kind of code they are generating. Also there were some interesting pieces of information about limits of different compilators. By example, now I know what features of .Net Framework are used for global variables that VB.Net supports.

Expert .Net 2.0 IL Assembler is weird book. It is like mixture of good reading and manual. If you are writing IL Assembler code you can take this book on your table and you can be sure this book helps you. If you want to read about IL Assembler, again take this book and read. It works well in both cases.

Table of contents

  1. Quick start

    1. Simple Sample
    2. Enhancing the Code
    3. Making the code easier
  2. Understanding Structures

    1. The Structure of Managed Executable File
    2. Metadata Tables Organization
  3. Fundamental Concepts

    1. Modules and Assemblies
    2. Namespaces and Classes
    3. Primitive Types and Signatures
    4. Fields and Data Constants
    5. Methods
    6. Generic Types
    7. Generic Methods
  4. Inside the Execution Engine

    1. IL Instructions
    2. Managed Exception Handling
  5. Special Components

    1. Events and Properties
    2. Custom Attributes
    3. Security Attributes
    4. Managed and Unmanaged Code Interoperation
    5. Multilanguage Projects
  6. Appendixes

    1. ILAsm Grammar Reference
    2. Metadata Tables Reference
    3. IL Instruction Set Reference
    4. IL Assembler and Disassembler Command-Line Options
    5. Offline Verification Tool Reference
Liked this post? Empower your friends by sharing it!

Gunnar Peipman

Gunnar Peipman is ASP.NET, Azure and SharePoint fan, Estonian Microsoft user group leader, blogger, conference speaker, teacher, and tech maniac. Since 2008 he is Microsoft MVP specialized on ASP.NET.

    Leave a Reply

    Your email address will not be published. Required fields are marked *