This article describes the following:
Il Code Analysis method
Hello, World History
. NET Learning Methodology
1. Introduction
In 1988, Brian W.kernighan and Dennis M.ritchie co-authored the classic magnum opus "The C Programming Language" in software history, and I recommend that all programs have the opportunity to revisit the classics of history. Since then, Hello, the world example, as the opening code for almost all practical programming books, has continued so far, in addition to expressing respect for Giants and history, this article also begins with Hello, the world example, as a starting point for us to deduct the Il language and begin our step-by-Step il awareness journey.
2. From Hello, World began
The first, of course, is to showcase our Hello, World code and start a useful sharing.
using System;
using System.Data;
public class HelloWorld
{
public static void Main()
{
Console.WriteLine("Hello, world.");
}
}
This code performs the simplest process of greeting a strange world, then what is the truth behind the high-level language, and here we begin with the IL Code analysis based on the example above.
3.IL Experience Center
Apply the ILDasm.exe decompile tool to the compiled executable HelloWorld.exe, restore the HelloWorld for text MSIL encoding, and as it works we expect to be accounted for in a series of subsequent articles, and we view the screenshot as:
As the above figure shows, the compiled IL structure contains the manifest and HelloWorld classes, where manifest is a list of additional information that includes some attributes of the assembly, such as assembly name, version number, hash algorithm, assembly module, and so on. and a reference to an externally referenced assembly, and the HelloWorld class is the protagonist we're introducing below.