|
9 | 9 | .publickeytoken = (B7 7A 5C 56 19 34 E0 89 ) // .z\V.4..
|
10 | 10 | .ver 4:0:0:0
|
11 | 11 | }
|
12 |
| -.assembly tmppi3wbt |
| 12 | +.assembly tmpvpdwr1 |
13 | 13 | {
|
14 | 14 | .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilationRelaxationsAttribute::.ctor(int32) = ( 01 00 08 00 00 00 00 00 )
|
15 | 15 | .custom instance void [mscorlib]System.Runtime.CompilerServices.RuntimeCompatibilityAttribute::.ctor() = ( 01 00 01 00 54 02 16 57 72 61 70 4E 6F 6E 45 78 // ....T..WrapNonEx
|
|
19 | 19 | .hash algorithm 0x00008004
|
20 | 20 | .ver 0:0:0:0
|
21 | 21 | }
|
22 |
| -.module tmppi3wbt.tmp |
23 |
| -// MVID: {4130db71-37be-40af-9724-d988f7189866} |
| 22 | +.module tmpvpdwr1.tmp |
| 23 | +// MVID: {8447adbb-757d-4626-b7b7-846d745d90d0} |
24 | 24 | .custom instance void [mscorlib]System.Security.UnverifiableCodeAttribute::.ctor() = ( 01 00 00 00 )
|
25 | 25 | .imagebase 0x10000000
|
26 | 26 | .file alignment 0x00000200
|
|
31 | 31 |
|
32 | 32 | // =============== CLASS MEMBERS DECLARATION ===================
|
33 | 33 |
|
34 |
| -.class private auto ansi beforefieldinit ICSharpCode.Decompiler.Tests.TestCases.Ugly.NoGenericTypeInstantiation`1<.ctor TOnType> |
| 34 | +.class private auto ansi beforefieldinit ICSharpCode.Decompiler.Tests.TestCases.Ugly.NoNewOfT`1<.ctor TOnType> |
35 | 35 | extends [mscorlib]System.Object
|
36 | 36 | {
|
37 | 37 | .method public hidebysig static !TOnType
|
|
60 | 60 |
|
61 | 61 | IL_0025: ldloc.0
|
62 | 62 | IL_0026: ret
|
63 |
| - } // end of method NoGenericTypeInstantiation`1::CreateTOnType |
| 63 | + } // end of method NoNewOfT`1::CreateTOnType |
64 | 64 |
|
65 |
| - .method public hidebysig static !!TOnMethod |
66 |
| - CreateTOnMethod<.ctor TOnMethod>() cil managed |
| 65 | + .method public hidebysig static !!T CreateUnconstrainedT<.ctor T>() cil managed |
67 | 66 | {
|
68 | 67 | // Code size 39 (0x27)
|
69 | 68 | .maxstack 1
|
70 |
| - .locals init (!!TOnMethod V_0, |
71 |
| - !!TOnMethod V_1) |
| 69 | + .locals init (!!T V_0, |
| 70 | + !!T V_1) |
72 | 71 | IL_0000: nop
|
73 | 72 | IL_0001: ldloca.s V_1
|
74 |
| - IL_0003: initobj !!TOnMethod |
| 73 | + IL_0003: initobj !!T |
75 | 74 | IL_0009: ldloc.1
|
76 |
| - IL_000a: box !!TOnMethod |
| 75 | + IL_000a: box !!T |
77 | 76 | IL_000f: brfalse.s IL_001c
|
78 | 77 |
|
79 | 78 | IL_0011: ldloca.s V_1
|
80 |
| - IL_0013: initobj !!TOnMethod |
| 79 | + IL_0013: initobj !!T |
81 | 80 | IL_0019: ldloc.1
|
82 | 81 | IL_001a: br.s IL_0021
|
83 | 82 |
|
|
88 | 87 |
|
89 | 88 | IL_0025: ldloc.0
|
90 | 89 | IL_0026: ret
|
91 |
| - } // end of method NoGenericTypeInstantiation`1::CreateTOnMethod |
| 90 | + } // end of method NoNewOfT`1::CreateUnconstrainedT |
| 91 | + |
| 92 | + .method public hidebysig static !!T CreateClassT<class .ctor T>() cil managed |
| 93 | + { |
| 94 | + // Code size 11 (0xb) |
| 95 | + .maxstack 1 |
| 96 | + .locals init (!!T V_0) |
| 97 | + IL_0000: nop |
| 98 | + IL_0001: call !!0 [mscorlib]System.Activator::CreateInstance<!!0>() |
| 99 | + IL_0006: stloc.0 |
| 100 | + IL_0007: br.s IL_0009 |
| 101 | + |
| 102 | + IL_0009: ldloc.0 |
| 103 | + IL_000a: ret |
| 104 | + } // end of method NoNewOfT`1::CreateClassT |
| 105 | + |
| 106 | + .method public hidebysig static !!T CollectionInitializer<.ctor (class [mscorlib]System.Collections.Generic.IList`1<int32>) T>() cil managed |
| 107 | + { |
| 108 | + // Code size 106 (0x6a) |
| 109 | + .maxstack 2 |
| 110 | + .locals init (!!T V_0, |
| 111 | + !!T V_1, |
| 112 | + !!T V_2) |
| 113 | + IL_0000: nop |
| 114 | + IL_0001: ldloca.s V_2 |
| 115 | + IL_0003: initobj !!T |
| 116 | + IL_0009: ldloc.2 |
| 117 | + IL_000a: box !!T |
| 118 | + IL_000f: brfalse.s IL_001c |
| 119 | + |
| 120 | + IL_0011: ldloca.s V_2 |
| 121 | + IL_0013: initobj !!T |
| 122 | + IL_0019: ldloc.2 |
| 123 | + IL_001a: br.s IL_0021 |
| 124 | + |
| 125 | + IL_001c: call !!0 [mscorlib]System.Activator::CreateInstance<!!0>() |
| 126 | + IL_0021: nop |
| 127 | + IL_0022: stloc.0 |
| 128 | + IL_0023: ldloc.0 |
| 129 | + IL_0024: box !!T |
| 130 | + IL_0029: ldc.i4.1 |
| 131 | + IL_002a: callvirt instance void class [mscorlib]System.Collections.Generic.ICollection`1<int32>::Add(!0) |
| 132 | + IL_002f: nop |
| 133 | + IL_0030: ldloc.0 |
| 134 | + IL_0031: box !!T |
| 135 | + IL_0036: ldc.i4.2 |
| 136 | + IL_0037: callvirt instance void class [mscorlib]System.Collections.Generic.ICollection`1<int32>::Add(!0) |
| 137 | + IL_003c: nop |
| 138 | + IL_003d: ldloc.0 |
| 139 | + IL_003e: box !!T |
| 140 | + IL_0043: ldc.i4.3 |
| 141 | + IL_0044: callvirt instance void class [mscorlib]System.Collections.Generic.ICollection`1<int32>::Add(!0) |
| 142 | + IL_0049: nop |
| 143 | + IL_004a: ldloc.0 |
| 144 | + IL_004b: box !!T |
| 145 | + IL_0050: ldc.i4.4 |
| 146 | + IL_0051: callvirt instance void class [mscorlib]System.Collections.Generic.ICollection`1<int32>::Add(!0) |
| 147 | + IL_0056: nop |
| 148 | + IL_0057: ldloc.0 |
| 149 | + IL_0058: box !!T |
| 150 | + IL_005d: ldc.i4.5 |
| 151 | + IL_005e: callvirt instance void class [mscorlib]System.Collections.Generic.ICollection`1<int32>::Add(!0) |
| 152 | + IL_0063: nop |
| 153 | + IL_0064: ldloc.0 |
| 154 | + IL_0065: stloc.1 |
| 155 | + IL_0066: br.s IL_0068 |
| 156 | + |
| 157 | + IL_0068: ldloc.1 |
| 158 | + IL_0069: ret |
| 159 | + } // end of method NoNewOfT`1::CollectionInitializer |
92 | 160 |
|
93 | 161 | .method public hidebysig specialname rtspecialname
|
94 | 162 | instance void .ctor() cil managed
|
|
98 | 166 | IL_0000: ldarg.0
|
99 | 167 | IL_0001: call instance void [mscorlib]System.Object::.ctor()
|
100 | 168 | IL_0006: ret
|
101 |
| - } // end of method NoGenericTypeInstantiation`1::.ctor |
| 169 | + } // end of method NoNewOfT`1::.ctor |
102 | 170 |
|
103 |
| -} // end of class ICSharpCode.Decompiler.Tests.TestCases.Ugly.NoGenericTypeInstantiation`1 |
| 171 | +} // end of class ICSharpCode.Decompiler.Tests.TestCases.Ugly.NoNewOfT`1 |
104 | 172 |
|
105 | 173 |
|
106 | 174 | // =============================================================
|
|
0 commit comments