/
generics-sharing-other-exc.2.il
170 lines (146 loc) · 4.21 KB
/
generics-sharing-other-exc.2.il
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
.assembly extern mscorlib
{
.ver 2:0:0:0
.publickeytoken = (B7 7A 5C 56 19 34 E0 89 ) // .z\V.4..
}
.assembly 'generics-sharing-other-exc.2'
{
.custom instance void class [mscorlib]System.Runtime.CompilerServices.RuntimeCompatibilityAttribute::.ctor() = (
01 00 01 00 54 02 16 57 72 61 70 4E 6F 6E 45 78 // ....T..WrapNonEx
63 65 70 74 69 6F 6E 54 68 72 6F 77 73 01 ) // ceptionThrows.
.hash algorithm 0x00008004
.ver 0:0:0:0
}
.module 'generics-sharing-other-exc.2.exe' // GUID = {770295FB-70A6-4755-9969-EFE664D15786}
.class public auto ansi beforefieldinit ClassA
extends [mscorlib]System.Object
{
// method line 1
.method public hidebysig specialname rtspecialname
instance default void .ctor () cil managed
{
// Method begins at RVA 0x20ec
// Code size 7 (0x7)
.maxstack 8
IL_0000: ldarg.0
IL_0001: call instance void object::.ctor()
IL_0006: ret
} // end of method ClassA::.ctor
} // end of class ClassA
.class public auto ansi beforefieldinit NonGen
extends [mscorlib]System.Object
{
// method line 3
.method public hidebysig specialname rtspecialname
instance default void .ctor () cil managed
{
// Method begins at RVA 0x20fc
// Code size 7 (0x7)
.maxstack 8
IL_0000: ldarg.0
IL_0001: call instance void object::.ctor()
IL_0006: ret
} // end of method NonGen::.ctor
// method line 4
.method public static hidebysig
default void doThrow () cil managed
{
// Method begins at RVA 0x2104
// Code size 6 (0x6)
.maxstack 8
// IL_0000: ldc.i4.3
// IL_0001: newarr ClassA
IL_0000: newobj instance void class ClassA::.ctor()
IL_0005: throw
} // end of method NonGen::doThrow
// method line 5
.method public static hidebysig
default object newArr () cil managed
{
// Method begins at RVA 0x210c
// Code size 7 (0x7)
.maxstack 8
IL_0000: ldc.i4.3
IL_0001: newarr ClassA
IL_0006: ret
} // end of method NonGen::newArr
} // end of class NonGen
.class public auto ansi beforefieldinit Gen`1<T>
extends [mscorlib]System.Object
{
// method line 6
.method public hidebysig specialname rtspecialname
instance default void .ctor () cil managed
{
// Method begins at RVA 0x2114
// Code size 7 (0x7)
.maxstack 8
IL_0000: ldarg.0
IL_0001: call instance void object::.ctor()
IL_0006: ret
} // end of method Gen`1::.ctor
// method line 7
.method public hidebysig
instance default void except () cil managed
{
// Method begins at RVA 0x211c
// Code size 17 (0x11)
.maxstack 1
.try { // 0
IL_0000: call void class NonGen::doThrow()
IL_0005: leave IL_0010
} // end .try 0
catch !0 { // 0
IL_000a: pop
IL_000b: leave IL_0010
} // end handler 0
IL_0010: ret
} // end of method Gen`1::except
} // end of class Gen`1
.class public auto ansi beforefieldinit main
extends [mscorlib]System.Object
{
// method line 8
.method public hidebysig specialname rtspecialname
instance default void .ctor () cil managed
{
// Method begins at RVA 0x2158
// Code size 7 (0x7)
.maxstack 8
IL_0000: ldarg.0
IL_0001: call instance void object::.ctor()
IL_0006: ret
} // end of method main::.ctor
// method line 9
.method public static hidebysig
default int32 Main () cil managed
{
// Method begins at RVA 0x2160
.entrypoint
// Code size 44 (0x2c)
.maxstack 4
.locals init (
class Gen`1<class ClassA> V_0,
int32 V_1)
IL_0000: newobj instance void class Gen`1<class ClassA>::.ctor()
IL_0005: stloc.0
.try { // 0
IL_0006: ldloc.0
IL_0007: callvirt instance void class Gen`1<class ClassA>::except()
IL_000c: leave IL_0028
} // end .try 0
catch class ClassA { // 0
IL_0011: pop
IL_0012: ldstr "exception not caught"
IL_0017: call void class [mscorlib]System.Console::WriteLine(string)
IL_001c: ldc.i4.1
IL_001d: stloc.1
IL_001e: leave IL_002a
IL_0023: leave IL_0028
} // end handler 0
IL_0028: ldc.i4.0
IL_0029: ret
IL_002a: ldloc.1
IL_002b: ret
} // end of method main::Main
} // end of class main