public static void abc() { System.Console.WriteLine("bye"); } }c:il>csc a.csc:il>ildasm /output=a.il a.exea.il// Microsoft (R) .NET Framework IL Disassembler. Version 1.0.2204.21 // Copyright (C) Microsoft Corp. 1998-2000
// VTableFixup Directory: // No data. .subsystem 0x00000003 .corflags 0x00000001 .assembly extern mscorlib { .originator = (03 68 91 16 D3 A4 AE 33 ) // .h..3 .hash = (52 44 F8 C9 55 1F 54 3F 97 D7 AB AD E2 DF 1D E0 F2 9D 4F BC ) // RD..U.T?.O. .ver 1:0:2204:21 } .assembly a as "a" { // --- The following custom attribute is added automatically, do not uncomment ------- // .custom instance void [mscorlib]System.Diagnostics.DebuggableAttribute:: // .ctor(bool, bool) = ( 01 00 00 01 00 00 ) .hash algorithm 0x00008004 .ver 0:0:0:0 } .module a.exe // MVID: {3C938660-2A02-11D5-9089-9752D1D64E03} .class private auto ansi zzz extends [mscorlib]System.Object { .method public hidebysig static void Main() il managed { .entrypoint // Code size 16 (0x10) .maxstack 8 IL_0000: ldstr "hi" IL_0005: call void [mscorlib]System.Console::WriteLine(class System.String) IL_000a: call void zzz::abc() IL_000f: ret } // end of method zzz::Main
.method public hidebysig static void abc() il managed { // Code size 11 (0xb) .maxstack 8 IL_0000: ldstr "bye" IL_0005: call void [mscorlib]System.Console::WriteLine(class System.String) IL_000a: ret } // end of method zzz::abc
.method public hidebysig specialname rtspecialname instance void .ctor() il managed { // Code size 7 (0x7) .maxstack 8 IL_0000: ldarg.0 IL_0001: call instance void [mscorlib]System.Object::.ctor() IL_0006: ret } // end of method zzz::.ctor