.class private auto ansi beforefieldinit
extends [mscorlib]
{
// Methods
.method private hidebysig static
void Main (
string[] args
) cil managed
{
// Method begins at RVA 0x2050
// Code size 2 (0x2)
.maxstack 8
.entrypoint
IL_0000: nop
IL_0001: ret
} // end of method Program::Main
.method private hidebysig static
void Box () cil managed
{
// Method begins at RVA 0x2054
// Code size 10 (0xa)
.maxstack 1
.locals init (
[0] object objValue
)
IL_0000: nop
IL_0001: ldc. 9
IL_0003: box [mscorlib]System.Int32
IL_0008: stloc.0
IL_0009: ret
} // end of method Program::Box
.method private hidebysig static
void Unbox () cil managed
{
// Method begins at RVA 0x206c
// Code size 16 (0x10)
.maxstack 1
.locals init (
[0] object objValue,
[1] int32 'value'
)
IL_0000: nop
IL_0001: ldc.i4.4
IL_0002: box [mscorlib]System.Int32
IL_0007: stloc.0
IL_0008: ldloc.0
IL_0009: [mscorlib]System.Int32
IL_000e: stloc.1
IL_000f: ret
} // end of method Program::Unbox
.method private hidebysig static
void LookatArrayList () cil managed
{
// Method begins at RVA 0x2088
// Code size 114 (0x72)
.maxstack 2
.locals init (
[0] class [mscorlib] 'array',
[1] int32 'value',
[2] class [mscorlib] CS$5$0000,
[3] bool CS$4$0001,
[4] class [mscorlib] CS$0$0002
)
IL_0000: nop
IL_0001: newobj instance void [mscorlib]::.ctor()
IL_0006: stloc.0
IL_0007: ldloc.0
IL_0008: ldc.i4.1
IL_0009: box [mscorlib]System.Int32
IL_000e: callvirt instance int32 [mscorlib]::Add(object)
IL_0013: pop
IL_0014: ldloc.0
IL_0015: ldc.i4.2
IL_0016: box [mscorlib]System.Int32
IL_001b: callvirt instance int32 [mscorlib]::Add(object)
IL_0020: pop
IL_0021: nop
IL_0022: ldloc.0
IL_0023: callvirt instance class [mscorlib] [mscorlib]::GetEnumerator()
IL_0028: stloc.2
.try
{
IL_0029: IL_004a
// loop start (head: IL_004a)
IL_002b: ldloc.2
IL_002c: callvirt instance object [mscorlib]::get_Current()
IL_0031: [mscorlib]System.Int32
IL_0036: stloc.1
IL_0037: nop
IL_0038: ldstr "value is {0}"
IL_003d: ldloc.1
IL_003e: box [mscorlib]System.Int32
IL_0043: call void [mscorlib]::WriteLine(string, object)
IL_0048: nop
IL_0049: nop
IL_004a: ldloc.2
IL_004b: callvirt instance bool [mscorlib]::MoveNext()
IL_0050: stloc.3
IL_0051: ldloc.3
IL_0052: IL_002b
// end loop
IL_0054: IL_0070
} // end .try
finally
{
IL_0056: ldloc.2
IL_0057: isinst [mscorlib]
IL_005c: CS$0$0002
IL_005e: CS$0$0002
IL_0060: ldnull
IL_0061: ceq
IL_0063: stloc.3
IL_0064: ldloc.3
IL_0065: IL_006f
IL_0067: CS$0$0002
IL_0069: callvirt instance void [mscorlib]::Dispose()
IL_006e: nop
IL_006f: endfinally
} // end handler
IL_0070: nop
IL_0071: ret
} // end of method Program::LookatArrayList
.method private hidebysig static
void LookatGenericList () cil managed
{
// Method begins at RVA 0x2118
// Code size 90 (0x5a)
.maxstack 2
.locals init (
[0] class [mscorlib]`1<int32> list,
[1] int32 'value',
[2] valuetype [mscorlib]`1/Enumerator<int32> CS$5$0000,
[3] bool CS$4$0001
)
IL_0000: nop
IL_0001: newobj instance void class [mscorlib]`1<int32>::.ctor()
IL_0006: stloc.0
IL_0007: ldloc.0
IL_0008: ldc.i4.1
IL_0009: callvirt instance void class [mscorlib]`1<int32>::Add(!0)
IL_000e: nop
IL_000f: ldloc.0
IL_0010: ldc.i4.2
IL_0011: callvirt instance void class [mscorlib]`1<int32>::Add(!0)
IL_0016: nop
IL_0017: nop
IL_0018: ldloc.0
IL_0019: callvirt instance valuetype [mscorlib]`1/Enumerator<!0> class [mscorlib]`1<int32>::GetEnumerator()
IL_001e: stloc.2
.try
{
IL_001f: IL_003c
// loop start (head: IL_003c)
IL_0021: CS$5$0000
IL_0023: call instance !0 valuetype [mscorlib]`1/Enumerator<int32>::get_Current()
IL_0028: stloc.1
IL_0029: nop
IL_002a: ldstr "value is {0}"
IL_002f: ldloc.1
IL_0030: box [mscorlib]System.Int32
IL_0035: call void [mscorlib]::WriteLine(string, object)
IL_003a: nop
IL_003b: nop
IL_003c: CS$5$0000
IL_003e: call instance bool valuetype [mscorlib]`1/Enumerator<int32>::MoveNext()
IL_0043: stloc.3
IL_0044: ldloc.3
IL_0045: IL_0021
// end loop
IL_0047: IL_0058
} // end .try
finally
{
IL_0049: CS$5$0000
IL_004b: constrained. valuetype [mscorlib]`1/Enumerator<int32>
IL_0051: callvirt instance void [mscorlib]::Dispose()
IL_0056: nop
IL_0057: endfinally
} // end handler
IL_0058: nop
IL_0059: ret
} // end of method Program::LookatGenericList
.method public hidebysig specialname rtspecialname
instance void .ctor () cil managed
{
// Method begins at RVA 0x2190
// Code size 7 (0x7)
.maxstack 8
IL_0000: ldarg.0
IL_0001: call instance void [mscorlib]::.ctor()
IL_0006: ret
} // end of method Program::.ctor
} // end of class