CHAPTER 18 UNDERSTANDING CIL AND THE ROLE OF DYNAMIC ASSEMBLIES
.method private hidebysig static void Main(string[] args) cil managed
{
.entrypoint
.maxstack 8
}
ldstr "CIL is way cool"
call valuetype [System.Windows.Forms]
System.Windows.Forms.DialogResult
[System.Windows.Forms]
System.Windows.Forms.MessageBox::Show(string)
pop
ret
In effect, you have just updated the CIL code to correspond to the following C# class definition:
class Program
{
static void Main(string[] args)
{
System.Windows.Forms.MessageBox.Sh