1 .assembly extern mscorlib
4 .publickeytoken = (B7 7A 5C 56 19 34 E0 89 ) // .z\V.4..
6 .assembly 'generic-mkrefany.2'
8 .custom instance void class [mscorlib]System.Runtime.CompilerServices.RuntimeCompatibilityAttribute::'.ctor'() = (
9 01 00 01 00 54 02 16 57 72 61 70 4E 6F 6E 45 78 // ....T..WrapNonEx
10 63 65 70 74 69 6F 6E 54 68 72 6F 77 73 01 ) // ceptionThrows.
12 .hash algorithm 0x00008004
15 .module 'generic-mkrefany.2.exe' // GUID = {51FFBB77-6AFB-435E-B206-16DB5C8A3730}
18 .class public auto ansi beforefieldinit ClassA
19 extends [mscorlib]System.Object
23 .method public hidebysig specialname rtspecialname
24 instance default void '.ctor' () cil managed
26 // Method begins at RVA 0x20ec
30 IL_0001: call instance void object::'.ctor'()
32 } // end of method ClassA::.ctor
34 } // end of class ClassA
36 .class public sequential ansi sealed beforefieldinit GenStruct`1<T>
37 extends [mscorlib]System.ValueType
39 .field public int32 field1
40 .field public !0 field2
42 } // end of class GenStruct`1
44 .class public auto ansi beforefieldinit Gen`1<T>
45 extends [mscorlib]System.Object
49 .method public hidebysig specialname rtspecialname
50 instance default void '.ctor' () cil managed
52 // Method begins at RVA 0x20f4
56 IL_0001: call instance void object::'.ctor'()
58 } // end of method Gen`1::.ctor
61 .method public hidebysig
62 instance default !T ident (!T t) cil managed
64 // Method begins at RVA 0x20fc
74 } // end of method Gen`1::ident
77 .method public hidebysig
78 instance default valuetype GenStruct`1<!T> structIdent (valuetype GenStruct`1<!T> gst) cil managed
80 // Method begins at RVA 0x210c
84 valuetype GenStruct`1<!T> V_0)
88 ldobj valuetype GenStruct`1<!0>
90 } // end of method Gen`1::structIdent
92 } // end of class Gen`1
94 .class public auto ansi beforefieldinit main
95 extends [mscorlib]System.Object
99 .method public hidebysig specialname rtspecialname
100 instance default void '.ctor' () cil managed
102 // Method begins at RVA 0x211c
106 IL_0001: call instance void object::'.ctor'()
108 } // end of method main::.ctor
111 .method public static hidebysig
112 default int32 Main () cil managed
114 // Method begins at RVA 0x2124
116 // Code size 94 (0x5e)
120 valuetype GenStruct`1<class ClassA> V_1,
121 class Gen`1<class ClassA> V_2,
122 valuetype GenStruct`1<class ClassA> V_3)
123 IL_0000: newobj instance void class ClassA::'.ctor'()
126 IL_0008: ldc.i4.s 0x7b
127 IL_000a: stfld int32 valuetype GenStruct`1<class ClassA>::field1
130 IL_0012: stfld !0 valuetype GenStruct`1<class ClassA>::field2
131 IL_0017: newobj instance void class Gen`1<class ClassA>::'.ctor'()
135 IL_001f: callvirt instance !0 class Gen`1<class ClassA>::ident(!0)
143 IL_002e: callvirt instance valuetype GenStruct`1<!0> class Gen`1<class ClassA>::structIdent(valuetype GenStruct`1<!0>)
146 IL_0036: ldfld int32 valuetype GenStruct`1<class ClassA>::field1
148 IL_003d: ldfld int32 valuetype GenStruct`1<class ClassA>::field1
149 IL_0042: bne.un IL_005a
152 IL_0049: ldfld !0 valuetype GenStruct`1<class ClassA>::field2
154 IL_0050: ldfld !0 valuetype GenStruct`1<class ClassA>::field2
161 } // end of method main::Main
163 } // end of class main