| 1 | <h2>Full example</h2> |
| 2 | <pre><code>// Metadata version: v4.0.30319 |
| 3 | .assembly extern mscorlib |
| 4 | { |
| 5 | .publickeytoken = (B7 7A 5C 56 19 34 E0 89 ) // .z\V.4.. |
| 6 | .ver 4:0:0:0 |
| 7 | } |
| 8 | .assembly i1ohgbkl |
| 9 | { |
| 10 | .hash algorithm 0x00008004 |
| 11 | .ver 0:0:0:0 |
| 12 | } |
| 13 | .module i1ohgbkl.dll |
| 14 | // MVID: {AC981AA1-16FE-413D-BBED-D83AE719F45C} |
| 15 | .imagebase 0x10000000 |
| 16 | .file alignment 0x00000200 |
| 17 | .stackreserve 0x00100000 |
| 18 | .subsystem 0x0003 // WINDOWS_CUI |
| 19 | .corflags 0x00000001 // ILONLY |
| 20 | // Image base: 0x017C0000 |
| 21 | |
| 22 | |
| 23 | // =============== CLASS MEMBERS DECLARATION =================== |
| 24 | |
| 25 | .class public auto ansi beforefieldinit Program |
| 26 | extends [mscorlib]System.Object |
| 27 | { |
| 28 | .method public hidebysig static void Main() cil managed |
| 29 | { |
| 30 | // |
| 31 | .maxstack 8 |
| 32 | IL_0000: nop |
| 33 | IL_0001: ldstr "Hello World" |
| 34 | IL_0006: call void [mscorlib]System.Console::WriteLine(string) |
| 35 | IL_000b: nop |
| 36 | IL_000c: ret |
| 37 | } // end of method Program::Main |
| 38 | |
| 39 | .method public hidebysig specialname rtspecialname |
| 40 | instance void .ctor() cil managed |
| 41 | { |
| 42 | // |
| 43 | .maxstack 8 |
| 44 | IL_0000: ldarg.0 |
| 45 | IL_0001: call instance void [mscorlib]System.Object::.ctor() |
| 46 | IL_0006: ret |
| 47 | } // end of method Program::.ctor |
| 48 | |
| 49 | } // end of class Program</code></pre> |