Consider following code:
public sealed class Program { public static void Main() { System.Console.WriteLine("Hi"); } }
after compiling it with csc.exe, I've open the assembly using ILDasm and found something I couldn't figure out:
the ILDasm "Show!" command display only single TypeDef (the "Program" class) but at the statistics view I can see that the TypeDef count is 2.
Any idea where the second type came from?
Source: the book "CLR via C#" 3rd edition from Jeffrey Richter page 39.