1 .assembly extern mscorlib
4 .publickeytoken = (B7 7A 5C 56 19 34 E0 89 ) // .z\V.4..
6 .assembly extern System.Core
9 .publickeytoken = (B7 7A 5C 56 19 34 E0 89 ) // .z\V.4..
11 .assembly 'test-anon-01'
13 .custom instance void class [mscorlib]System.Runtime.CompilerServices.RuntimeCompatibilityAttribute::'.ctor'() = (
14 01 00 01 00 54 02 16 57 72 61 70 4E 6F 6E 45 78 // ....T..WrapNonEx
15 63 65 70 74 69 6F 6E 54 68 72 6F 77 73 01 ) // ceptionThrows.
17 .hash algorithm 0x00008004
20 .module 'test-anon-01.exe' // GUID = {38A511CD-E5D7-4DA2-88C0-A137887BAFBC}
23 .class public auto ansi beforefieldinit Test
24 extends [mscorlib]System.Object
26 .field private static class [System.Core]System.Func`1<!!0> '<>f__am$cache0'
27 .custom instance void class [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::'.ctor'() = (01 00 00 00 ) // ....
31 .method public hidebysig specialname rtspecialname
32 instance default void '.ctor' () cil managed
34 // Method begins at RVA 0x20ec
38 IL_0001: call instance void object::'.ctor'()
40 } // end of method Test::.ctor
43 .method private static hidebysig
44 default class [System.Core]System.Func`1<!!T> XX<T> () cil managed
46 // Method begins at RVA 0x20f4
47 // Code size 32 (0x20)
50 class [System.Core]System.Func`1<!!T> V_0)
51 IL_0000: ldsfld class [System.Core]System.Func`1<!!0> Test::'<>f__am$cache0'
52 IL_0005: brtrue.s IL_0018
55 IL_0008: ldftn !!0 class Test::'<XX>m__0'<!!0> ()
56 IL_000e: newobj instance void class [System.Core]System.Func`1<!!T>::'.ctor'(object, native int)
57 IL_0013: stsfld class [System.Core]System.Func`1<!!0> Test::'<>f__am$cache0'
58 IL_0018: ldsfld class [System.Core]System.Func`1<!!0> Test::'<>f__am$cache0'
62 } // end of method Test::XX
65 .method public static hidebysig
66 default int32 Main () cil managed
68 // Method begins at RVA 0x2120
70 // Code size 103 (0x67)
72 IL_0000: call class [System.Core]System.Func`1<!!0> class Test::XX<bool> ()
73 IL_0005: callvirt instance !0 class [System.Core]System.Func`1<bool>::Invoke()
74 IL_000a: box [mscorlib]System.Boolean
75 IL_000f: call instance class [mscorlib]System.Type object::GetType()
76 IL_0014: ldtoken [mscorlib]System.Boolean
77 IL_0019: call class [mscorlib]System.Type class [mscorlib]System.Type::GetTypeFromHandle(valuetype [mscorlib]System.RuntimeTypeHandle)
82 IL_0025: call class [System.Core]System.Func`1<!!0> class Test::XX<int32> ()
83 IL_002a: callvirt instance !0 class [System.Core]System.Func`1<int32>::Invoke()
84 IL_002f: box [mscorlib]System.Int32
85 IL_0034: call instance class [mscorlib]System.Type object::GetType()
86 IL_0039: ldtoken [mscorlib]System.Int32
87 IL_003e: call class [mscorlib]System.Type class [mscorlib]System.Type::GetTypeFromHandle(valuetype [mscorlib]System.RuntimeTypeHandle)
92 IL_004a: call class [System.Core]System.Func`1<!!0> class Test::XX<object> ()
93 IL_004f: callvirt instance !0 class [System.Core]System.Func`1<object>::Invoke()
94 IL_0054: brfalse IL_005b
99 IL_0060: call void class [mscorlib]System.Console::WriteLine(string)
102 } // end of method Test::Main
105 .method private static hidebysig
106 default !!T '<XX>m__0'<T> () cil managed
108 .custom instance void class [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::'.ctor'() = (01 00 00 00 ) // ....
110 // Method begins at RVA 0x2194
111 // Code size 12 (0xc)
122 } // end of method Test::<XX>m__0
124 } // end of class Test