1 .assembly extern mscorlib
3 .publickeytoken = (B7 7A 5C 56 19 34 E0 89 ) // .z\V.4..
8 .hash algorithm 0x00008004
13 .file alignment 0x00000200
14 .stackreserve 0x00100000
15 .subsystem 0x0003 // WINDOWS_CUI
16 .corflags 0x00000001 // ILONLY
19 // =============== CLASS MEMBERS DECLARATION ===================
21 .class public auto ansi
22 beforefieldinit '<PrivateImplementationDetails$bug>'
23 extends [mscorlib]System.Object
25 } // end of class '<PrivateImplementationDetails$bug>'
27 .class public auto ansi beforefieldinit Bug
28 extends [mscorlib]System.Object
30 .method public static char get(string str,int32 i) cil managed
32 // Code size 61 (0x3d)
34 .locals init (char V_0,
35 class [mscorlib]System.Exception V_1,
36 class [mscorlib]System.Exception V_2)
41 call instance char [mscorlib]System.String::get_Chars (int32)
42 // Strangely this doesn't cause a crash
43 //call instance int32 [mscorlib]System.String::IndexOf (char)
47 IL_0008: leave.s IL_003b
55 .try IL_0000 to IL_000a filter IL_000a handler IL_001e to IL_003b
57 } // end of method Bug::get
59 .method public static bool capture(int32 i) cil managed
61 // Code size 16 (0x10)
63 IL_0000: ldstr "Testing\n"
65 IL_0006: call char Bug::get(string,int32)
69 } // end of method Bug::capture
73 .class public auto ansi beforefieldinit '<StartupCode>'.Bug
74 extends [mscorlib]System.Object
76 .method public static void _main() cil managed
81 .locals init (bool V_0)
83 IL_0001: call bool Bug::capture(int32)
86 } // end of method Bug::_main
88 } // end of class '<StartupCode>'.Bug