mirror of https://github.com/icsharpcode/ILSpy.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1946 lines
74 KiB
1946 lines
74 KiB
|
|
// Microsoft (R) .NET Framework IL Disassembler. Version 4.6.1055.0 |
|
// Copyright (c) Microsoft Corporation. All rights reserved. |
|
|
|
|
|
|
|
// Metadata version: v2.0.50727 |
|
.assembly extern mscorlib |
|
{ |
|
.publickeytoken = (B7 7A 5C 56 19 34 E0 89 ) // .z\V.4.. |
|
.ver 2:0:0:0 |
|
} |
|
.assembly extern System.Core |
|
{ |
|
.publickeytoken = (B7 7A 5C 56 19 34 E0 89 ) // .z\V.4.. |
|
.ver 3:5:0:0 |
|
} |
|
.assembly tmpC964 |
|
{ |
|
.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 |
|
63 65 70 74 69 6F 6E 54 68 72 6F 77 73 01 ) // ceptionThrows. |
|
.permissionset reqmin |
|
bytearray (3C 00 50 00 65 00 72 00 6D 00 69 00 73 00 73 00 // <.P.e.r.m.i.s.s. |
|
69 00 6F 00 6E 00 53 00 65 00 74 00 20 00 63 00 // i.o.n.S.e.t. .c. |
|
6C 00 61 00 73 00 73 00 3D 00 22 00 53 00 79 00 // l.a.s.s.=.".S.y. |
|
73 00 74 00 65 00 6D 00 2E 00 53 00 65 00 63 00 // s.t.e.m...S.e.c. |
|
75 00 72 00 69 00 74 00 79 00 2E 00 50 00 65 00 // u.r.i.t.y...P.e. |
|
72 00 6D 00 69 00 73 00 73 00 69 00 6F 00 6E 00 // r.m.i.s.s.i.o.n. |
|
53 00 65 00 74 00 22 00 0D 00 0A 00 76 00 65 00 // S.e.t.".....v.e. |
|
72 00 73 00 69 00 6F 00 6E 00 3D 00 22 00 31 00 // r.s.i.o.n.=.".1. |
|
22 00 3E 00 0D 00 0A 00 3C 00 49 00 50 00 65 00 // ".>.....<.I.P.e. |
|
72 00 6D 00 69 00 73 00 73 00 69 00 6F 00 6E 00 // r.m.i.s.s.i.o.n. |
|
20 00 63 00 6C 00 61 00 73 00 73 00 3D 00 22 00 // .c.l.a.s.s.=.". |
|
53 00 79 00 73 00 74 00 65 00 6D 00 2E 00 53 00 // S.y.s.t.e.m...S. |
|
65 00 63 00 75 00 72 00 69 00 74 00 79 00 2E 00 // e.c.u.r.i.t.y... |
|
50 00 65 00 72 00 6D 00 69 00 73 00 73 00 69 00 // P.e.r.m.i.s.s.i. |
|
6F 00 6E 00 73 00 2E 00 53 00 65 00 63 00 75 00 // o.n.s...S.e.c.u. |
|
72 00 69 00 74 00 79 00 50 00 65 00 72 00 6D 00 // r.i.t.y.P.e.r.m. |
|
69 00 73 00 73 00 69 00 6F 00 6E 00 2C 00 20 00 // i.s.s.i.o.n.,. . |
|
6D 00 73 00 63 00 6F 00 72 00 6C 00 69 00 62 00 // m.s.c.o.r.l.i.b. |
|
2C 00 20 00 56 00 65 00 72 00 73 00 69 00 6F 00 // ,. .V.e.r.s.i.o. |
|
6E 00 3D 00 32 00 2E 00 30 00 2E 00 30 00 2E 00 // n.=.2...0...0... |
|
30 00 2C 00 20 00 43 00 75 00 6C 00 74 00 75 00 // 0.,. .C.u.l.t.u. |
|
72 00 65 00 3D 00 6E 00 65 00 75 00 74 00 72 00 // r.e.=.n.e.u.t.r. |
|
61 00 6C 00 2C 00 20 00 50 00 75 00 62 00 6C 00 // a.l.,. .P.u.b.l. |
|
69 00 63 00 4B 00 65 00 79 00 54 00 6F 00 6B 00 // i.c.K.e.y.T.o.k. |
|
65 00 6E 00 3D 00 62 00 37 00 37 00 61 00 35 00 // e.n.=.b.7.7.a.5. |
|
63 00 35 00 36 00 31 00 39 00 33 00 34 00 65 00 // c.5.6.1.9.3.4.e. |
|
30 00 38 00 39 00 22 00 0D 00 0A 00 76 00 65 00 // 0.8.9.".....v.e. |
|
72 00 73 00 69 00 6F 00 6E 00 3D 00 22 00 31 00 // r.s.i.o.n.=.".1. |
|
22 00 0D 00 0A 00 46 00 6C 00 61 00 67 00 73 00 // ".....F.l.a.g.s. |
|
3D 00 22 00 53 00 6B 00 69 00 70 00 56 00 65 00 // =.".S.k.i.p.V.e. |
|
72 00 69 00 66 00 69 00 63 00 61 00 74 00 69 00 // r.i.f.i.c.a.t.i. |
|
6F 00 6E 00 22 00 2F 00 3E 00 0D 00 0A 00 3C 00 // o.n."./.>.....<. |
|
2F 00 50 00 65 00 72 00 6D 00 69 00 73 00 73 00 // /.P.e.r.m.i.s.s. |
|
69 00 6F 00 6E 00 53 00 65 00 74 00 3E 00 0D 00 // i.o.n.S.e.t.>... |
|
0A 00 ) |
|
.hash algorithm 0x00008004 |
|
.ver 0:0:0:0 |
|
} |
|
.module tmpC964.tmp |
|
// MVID: {E309B5C7-312B-4338-9E32-97629EBB582F} |
|
.custom instance void [mscorlib]System.Security.UnverifiableCodeAttribute::.ctor() = ( 01 00 00 00 ) |
|
.imagebase 0x00400000 |
|
.file alignment 0x00000200 |
|
.stackreserve 0x00100000 |
|
.subsystem 0x0003 // WINDOWS_CUI |
|
.corflags 0x00000001 // ILONLY |
|
// Image base: 0x04B70000 |
|
|
|
|
|
// =============== CLASS MEMBERS DECLARATION =================== |
|
|
|
.class public auto ansi beforefieldinit ICSharpCode.Decompiler.Tests.TestCases.Pretty.Loops |
|
extends [mscorlib]System.Object |
|
{ |
|
.class auto ansi nested public beforefieldinit CustomClassEnumerator |
|
extends [mscorlib]System.Object |
|
{ |
|
.method public hidebysig specialname rtspecialname |
|
instance void .ctor() cil managed |
|
{ |
|
// Code size 7 (0x7) |
|
.maxstack 8 |
|
IL_0000: ldarg.0 |
|
IL_0001: call instance void [mscorlib]System.Object::.ctor() |
|
IL_0006: ret |
|
} // end of method CustomClassEnumerator::.ctor |
|
|
|
.method public hidebysig specialname |
|
instance object get_Current() cil managed |
|
{ |
|
// Code size 6 (0x6) |
|
.maxstack 8 |
|
IL_0000: newobj instance void [mscorlib]System.NotImplementedException::.ctor() |
|
IL_0005: throw |
|
} // end of method CustomClassEnumerator::get_Current |
|
|
|
.method public hidebysig instance bool |
|
MoveNext() cil managed |
|
{ |
|
// Code size 6 (0x6) |
|
.maxstack 8 |
|
IL_0000: newobj instance void [mscorlib]System.NotImplementedException::.ctor() |
|
IL_0005: throw |
|
} // end of method CustomClassEnumerator::MoveNext |
|
|
|
.method public hidebysig instance void |
|
Reset() cil managed |
|
{ |
|
// Code size 6 (0x6) |
|
.maxstack 8 |
|
IL_0000: newobj instance void [mscorlib]System.NotImplementedException::.ctor() |
|
IL_0005: throw |
|
} // end of method CustomClassEnumerator::Reset |
|
|
|
.method public hidebysig instance class ICSharpCode.Decompiler.Tests.TestCases.Pretty.Loops/CustomClassEnumerator |
|
GetEnumerator() cil managed |
|
{ |
|
// Code size 2 (0x2) |
|
.maxstack 8 |
|
IL_0000: ldarg.0 |
|
IL_0001: ret |
|
} // end of method CustomClassEnumerator::GetEnumerator |
|
|
|
.property object Current() |
|
{ |
|
.get instance object ICSharpCode.Decompiler.Tests.TestCases.Pretty.Loops/CustomClassEnumerator::get_Current() |
|
} // end of property CustomClassEnumerator::Current |
|
} // end of class CustomClassEnumerator |
|
|
|
.class sequential ansi sealed nested public beforefieldinit CustomStructEnumerator |
|
extends [mscorlib]System.ValueType |
|
{ |
|
.pack 0 |
|
.size 1 |
|
.method public hidebysig specialname |
|
instance object get_Current() cil managed |
|
{ |
|
// Code size 6 (0x6) |
|
.maxstack 8 |
|
IL_0000: newobj instance void [mscorlib]System.NotImplementedException::.ctor() |
|
IL_0005: throw |
|
} // end of method CustomStructEnumerator::get_Current |
|
|
|
.method public hidebysig instance bool |
|
MoveNext() cil managed |
|
{ |
|
// Code size 6 (0x6) |
|
.maxstack 8 |
|
IL_0000: newobj instance void [mscorlib]System.NotImplementedException::.ctor() |
|
IL_0005: throw |
|
} // end of method CustomStructEnumerator::MoveNext |
|
|
|
.method public hidebysig instance void |
|
Reset() cil managed |
|
{ |
|
// Code size 6 (0x6) |
|
.maxstack 8 |
|
IL_0000: newobj instance void [mscorlib]System.NotImplementedException::.ctor() |
|
IL_0005: throw |
|
} // end of method CustomStructEnumerator::Reset |
|
|
|
.method public hidebysig instance valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.Loops/CustomStructEnumerator |
|
GetEnumerator() cil managed |
|
{ |
|
// Code size 7 (0x7) |
|
.maxstack 8 |
|
IL_0000: ldarg.0 |
|
IL_0001: ldobj ICSharpCode.Decompiler.Tests.TestCases.Pretty.Loops/CustomStructEnumerator |
|
IL_0006: ret |
|
} // end of method CustomStructEnumerator::GetEnumerator |
|
|
|
.property object Current() |
|
{ |
|
.get instance object ICSharpCode.Decompiler.Tests.TestCases.Pretty.Loops/CustomStructEnumerator::get_Current() |
|
} // end of property CustomStructEnumerator::Current |
|
} // end of class CustomStructEnumerator |
|
|
|
.class auto ansi nested public beforefieldinit CustomClassEnumerator`1<T> |
|
extends [mscorlib]System.Object |
|
{ |
|
.method public hidebysig specialname rtspecialname |
|
instance void .ctor() cil managed |
|
{ |
|
// Code size 7 (0x7) |
|
.maxstack 8 |
|
IL_0000: ldarg.0 |
|
IL_0001: call instance void [mscorlib]System.Object::.ctor() |
|
IL_0006: ret |
|
} // end of method CustomClassEnumerator`1::.ctor |
|
|
|
.method public hidebysig specialname |
|
instance !T get_Current() cil managed |
|
{ |
|
// Code size 6 (0x6) |
|
.maxstack 8 |
|
IL_0000: newobj instance void [mscorlib]System.NotImplementedException::.ctor() |
|
IL_0005: throw |
|
} // end of method CustomClassEnumerator`1::get_Current |
|
|
|
.method public hidebysig instance void |
|
Dispose() cil managed |
|
{ |
|
// Code size 6 (0x6) |
|
.maxstack 8 |
|
IL_0000: newobj instance void [mscorlib]System.NotImplementedException::.ctor() |
|
IL_0005: throw |
|
} // end of method CustomClassEnumerator`1::Dispose |
|
|
|
.method public hidebysig instance bool |
|
MoveNext() cil managed |
|
{ |
|
// Code size 6 (0x6) |
|
.maxstack 8 |
|
IL_0000: newobj instance void [mscorlib]System.NotImplementedException::.ctor() |
|
IL_0005: throw |
|
} // end of method CustomClassEnumerator`1::MoveNext |
|
|
|
.method public hidebysig instance void |
|
Reset() cil managed |
|
{ |
|
// Code size 6 (0x6) |
|
.maxstack 8 |
|
IL_0000: newobj instance void [mscorlib]System.NotImplementedException::.ctor() |
|
IL_0005: throw |
|
} // end of method CustomClassEnumerator`1::Reset |
|
|
|
.method public hidebysig instance class ICSharpCode.Decompiler.Tests.TestCases.Pretty.Loops/CustomClassEnumerator`1<!T> |
|
GetEnumerator() cil managed |
|
{ |
|
// Code size 2 (0x2) |
|
.maxstack 8 |
|
IL_0000: ldarg.0 |
|
IL_0001: ret |
|
} // end of method CustomClassEnumerator`1::GetEnumerator |
|
|
|
.property !T Current() |
|
{ |
|
.get instance !T ICSharpCode.Decompiler.Tests.TestCases.Pretty.Loops/CustomClassEnumerator`1::get_Current() |
|
} // end of property CustomClassEnumerator`1::Current |
|
} // end of class CustomClassEnumerator`1 |
|
|
|
.class sequential ansi sealed nested public beforefieldinit CustomStructEnumerator`1<T> |
|
extends [mscorlib]System.ValueType |
|
{ |
|
.pack 0 |
|
.size 1 |
|
.method public hidebysig specialname |
|
instance !T get_Current() cil managed |
|
{ |
|
// Code size 6 (0x6) |
|
.maxstack 8 |
|
IL_0000: newobj instance void [mscorlib]System.NotImplementedException::.ctor() |
|
IL_0005: throw |
|
} // end of method CustomStructEnumerator`1::get_Current |
|
|
|
.method public hidebysig instance void |
|
Dispose() cil managed |
|
{ |
|
// Code size 6 (0x6) |
|
.maxstack 8 |
|
IL_0000: newobj instance void [mscorlib]System.NotImplementedException::.ctor() |
|
IL_0005: throw |
|
} // end of method CustomStructEnumerator`1::Dispose |
|
|
|
.method public hidebysig instance bool |
|
MoveNext() cil managed |
|
{ |
|
// Code size 6 (0x6) |
|
.maxstack 8 |
|
IL_0000: newobj instance void [mscorlib]System.NotImplementedException::.ctor() |
|
IL_0005: throw |
|
} // end of method CustomStructEnumerator`1::MoveNext |
|
|
|
.method public hidebysig instance void |
|
Reset() cil managed |
|
{ |
|
// Code size 6 (0x6) |
|
.maxstack 8 |
|
IL_0000: newobj instance void [mscorlib]System.NotImplementedException::.ctor() |
|
IL_0005: throw |
|
} // end of method CustomStructEnumerator`1::Reset |
|
|
|
.method public hidebysig instance valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.Loops/CustomStructEnumerator`1<!T> |
|
GetEnumerator() cil managed |
|
{ |
|
// Code size 7 (0x7) |
|
.maxstack 8 |
|
IL_0000: ldarg.0 |
|
IL_0001: ldobj valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.Loops/CustomStructEnumerator`1<!T> |
|
IL_0006: ret |
|
} // end of method CustomStructEnumerator`1::GetEnumerator |
|
|
|
.property !T Current() |
|
{ |
|
.get instance !T ICSharpCode.Decompiler.Tests.TestCases.Pretty.Loops/CustomStructEnumerator`1::get_Current() |
|
} // end of property CustomStructEnumerator`1::Current |
|
} // end of class CustomStructEnumerator`1 |
|
|
|
.class auto ansi nested public beforefieldinit CustomClassEnumeratorWithIDisposable |
|
extends [mscorlib]System.Object |
|
implements [mscorlib]System.IDisposable |
|
{ |
|
.method public hidebysig specialname rtspecialname |
|
instance void .ctor() cil managed |
|
{ |
|
// Code size 7 (0x7) |
|
.maxstack 8 |
|
IL_0000: ldarg.0 |
|
IL_0001: call instance void [mscorlib]System.Object::.ctor() |
|
IL_0006: ret |
|
} // end of method CustomClassEnumeratorWithIDisposable::.ctor |
|
|
|
.method public hidebysig specialname |
|
instance object get_Current() cil managed |
|
{ |
|
// Code size 6 (0x6) |
|
.maxstack 8 |
|
IL_0000: newobj instance void [mscorlib]System.NotImplementedException::.ctor() |
|
IL_0005: throw |
|
} // end of method CustomClassEnumeratorWithIDisposable::get_Current |
|
|
|
.method public hidebysig newslot virtual final |
|
instance void Dispose() cil managed |
|
{ |
|
// Code size 6 (0x6) |
|
.maxstack 8 |
|
IL_0000: newobj instance void [mscorlib]System.NotImplementedException::.ctor() |
|
IL_0005: throw |
|
} // end of method CustomClassEnumeratorWithIDisposable::Dispose |
|
|
|
.method public hidebysig instance bool |
|
MoveNext() cil managed |
|
{ |
|
// Code size 6 (0x6) |
|
.maxstack 8 |
|
IL_0000: newobj instance void [mscorlib]System.NotImplementedException::.ctor() |
|
IL_0005: throw |
|
} // end of method CustomClassEnumeratorWithIDisposable::MoveNext |
|
|
|
.method public hidebysig instance void |
|
Reset() cil managed |
|
{ |
|
// Code size 6 (0x6) |
|
.maxstack 8 |
|
IL_0000: newobj instance void [mscorlib]System.NotImplementedException::.ctor() |
|
IL_0005: throw |
|
} // end of method CustomClassEnumeratorWithIDisposable::Reset |
|
|
|
.method public hidebysig instance class ICSharpCode.Decompiler.Tests.TestCases.Pretty.Loops/CustomClassEnumeratorWithIDisposable |
|
GetEnumerator() cil managed |
|
{ |
|
// Code size 2 (0x2) |
|
.maxstack 8 |
|
IL_0000: ldarg.0 |
|
IL_0001: ret |
|
} // end of method CustomClassEnumeratorWithIDisposable::GetEnumerator |
|
|
|
.property object Current() |
|
{ |
|
.get instance object ICSharpCode.Decompiler.Tests.TestCases.Pretty.Loops/CustomClassEnumeratorWithIDisposable::get_Current() |
|
} // end of property CustomClassEnumeratorWithIDisposable::Current |
|
} // end of class CustomClassEnumeratorWithIDisposable |
|
|
|
.class sequential ansi sealed nested public beforefieldinit CustomStructEnumeratorWithIDisposable |
|
extends [mscorlib]System.ValueType |
|
implements [mscorlib]System.IDisposable |
|
{ |
|
.pack 0 |
|
.size 1 |
|
.method public hidebysig specialname |
|
instance object get_Current() cil managed |
|
{ |
|
// Code size 6 (0x6) |
|
.maxstack 8 |
|
IL_0000: newobj instance void [mscorlib]System.NotImplementedException::.ctor() |
|
IL_0005: throw |
|
} // end of method CustomStructEnumeratorWithIDisposable::get_Current |
|
|
|
.method public hidebysig newslot virtual final |
|
instance void Dispose() cil managed |
|
{ |
|
// Code size 6 (0x6) |
|
.maxstack 8 |
|
IL_0000: newobj instance void [mscorlib]System.NotImplementedException::.ctor() |
|
IL_0005: throw |
|
} // end of method CustomStructEnumeratorWithIDisposable::Dispose |
|
|
|
.method public hidebysig instance bool |
|
MoveNext() cil managed |
|
{ |
|
// Code size 6 (0x6) |
|
.maxstack 8 |
|
IL_0000: newobj instance void [mscorlib]System.NotImplementedException::.ctor() |
|
IL_0005: throw |
|
} // end of method CustomStructEnumeratorWithIDisposable::MoveNext |
|
|
|
.method public hidebysig instance void |
|
Reset() cil managed |
|
{ |
|
// Code size 6 (0x6) |
|
.maxstack 8 |
|
IL_0000: newobj instance void [mscorlib]System.NotImplementedException::.ctor() |
|
IL_0005: throw |
|
} // end of method CustomStructEnumeratorWithIDisposable::Reset |
|
|
|
.method public hidebysig instance valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.Loops/CustomStructEnumeratorWithIDisposable |
|
GetEnumerator() cil managed |
|
{ |
|
// Code size 7 (0x7) |
|
.maxstack 8 |
|
IL_0000: ldarg.0 |
|
IL_0001: ldobj ICSharpCode.Decompiler.Tests.TestCases.Pretty.Loops/CustomStructEnumeratorWithIDisposable |
|
IL_0006: ret |
|
} // end of method CustomStructEnumeratorWithIDisposable::GetEnumerator |
|
|
|
.property object Current() |
|
{ |
|
.get instance object ICSharpCode.Decompiler.Tests.TestCases.Pretty.Loops/CustomStructEnumeratorWithIDisposable::get_Current() |
|
} // end of property CustomStructEnumeratorWithIDisposable::Current |
|
} // end of class CustomStructEnumeratorWithIDisposable |
|
|
|
.class auto ansi nested public beforefieldinit CustomClassEnumeratorWithIDisposable`1<T> |
|
extends [mscorlib]System.Object |
|
implements [mscorlib]System.IDisposable |
|
{ |
|
.method public hidebysig specialname rtspecialname |
|
instance void .ctor() cil managed |
|
{ |
|
// Code size 7 (0x7) |
|
.maxstack 8 |
|
IL_0000: ldarg.0 |
|
IL_0001: call instance void [mscorlib]System.Object::.ctor() |
|
IL_0006: ret |
|
} // end of method CustomClassEnumeratorWithIDisposable`1::.ctor |
|
|
|
.method public hidebysig specialname |
|
instance !T get_Current() cil managed |
|
{ |
|
// Code size 6 (0x6) |
|
.maxstack 8 |
|
IL_0000: newobj instance void [mscorlib]System.NotImplementedException::.ctor() |
|
IL_0005: throw |
|
} // end of method CustomClassEnumeratorWithIDisposable`1::get_Current |
|
|
|
.method public hidebysig newslot virtual final |
|
instance void Dispose() cil managed |
|
{ |
|
// Code size 6 (0x6) |
|
.maxstack 8 |
|
IL_0000: newobj instance void [mscorlib]System.NotImplementedException::.ctor() |
|
IL_0005: throw |
|
} // end of method CustomClassEnumeratorWithIDisposable`1::Dispose |
|
|
|
.method public hidebysig instance bool |
|
MoveNext() cil managed |
|
{ |
|
// Code size 6 (0x6) |
|
.maxstack 8 |
|
IL_0000: newobj instance void [mscorlib]System.NotImplementedException::.ctor() |
|
IL_0005: throw |
|
} // end of method CustomClassEnumeratorWithIDisposable`1::MoveNext |
|
|
|
.method public hidebysig instance void |
|
Reset() cil managed |
|
{ |
|
// Code size 6 (0x6) |
|
.maxstack 8 |
|
IL_0000: newobj instance void [mscorlib]System.NotImplementedException::.ctor() |
|
IL_0005: throw |
|
} // end of method CustomClassEnumeratorWithIDisposable`1::Reset |
|
|
|
.method public hidebysig instance class ICSharpCode.Decompiler.Tests.TestCases.Pretty.Loops/CustomClassEnumeratorWithIDisposable`1<!T> |
|
GetEnumerator() cil managed |
|
{ |
|
// Code size 2 (0x2) |
|
.maxstack 8 |
|
IL_0000: ldarg.0 |
|
IL_0001: ret |
|
} // end of method CustomClassEnumeratorWithIDisposable`1::GetEnumerator |
|
|
|
.property !T Current() |
|
{ |
|
.get instance !T ICSharpCode.Decompiler.Tests.TestCases.Pretty.Loops/CustomClassEnumeratorWithIDisposable`1::get_Current() |
|
} // end of property CustomClassEnumeratorWithIDisposable`1::Current |
|
} // end of class CustomClassEnumeratorWithIDisposable`1 |
|
|
|
.class sequential ansi sealed nested public beforefieldinit CustomStructEnumeratorWithIDisposable`1<T> |
|
extends [mscorlib]System.ValueType |
|
implements [mscorlib]System.IDisposable |
|
{ |
|
.pack 0 |
|
.size 1 |
|
.method public hidebysig specialname |
|
instance !T get_Current() cil managed |
|
{ |
|
// Code size 6 (0x6) |
|
.maxstack 8 |
|
IL_0000: newobj instance void [mscorlib]System.NotImplementedException::.ctor() |
|
IL_0005: throw |
|
} // end of method CustomStructEnumeratorWithIDisposable`1::get_Current |
|
|
|
.method public hidebysig newslot virtual final |
|
instance void Dispose() cil managed |
|
{ |
|
// Code size 6 (0x6) |
|
.maxstack 8 |
|
IL_0000: newobj instance void [mscorlib]System.NotImplementedException::.ctor() |
|
IL_0005: throw |
|
} // end of method CustomStructEnumeratorWithIDisposable`1::Dispose |
|
|
|
.method public hidebysig instance bool |
|
MoveNext() cil managed |
|
{ |
|
// Code size 6 (0x6) |
|
.maxstack 8 |
|
IL_0000: newobj instance void [mscorlib]System.NotImplementedException::.ctor() |
|
IL_0005: throw |
|
} // end of method CustomStructEnumeratorWithIDisposable`1::MoveNext |
|
|
|
.method public hidebysig instance void |
|
Reset() cil managed |
|
{ |
|
// Code size 6 (0x6) |
|
.maxstack 8 |
|
IL_0000: newobj instance void [mscorlib]System.NotImplementedException::.ctor() |
|
IL_0005: throw |
|
} // end of method CustomStructEnumeratorWithIDisposable`1::Reset |
|
|
|
.method public hidebysig instance valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.Loops/CustomStructEnumeratorWithIDisposable`1<!T> |
|
GetEnumerator() cil managed |
|
{ |
|
// Code size 7 (0x7) |
|
.maxstack 8 |
|
IL_0000: ldarg.0 |
|
IL_0001: ldobj valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.Loops/CustomStructEnumeratorWithIDisposable`1<!T> |
|
IL_0006: ret |
|
} // end of method CustomStructEnumeratorWithIDisposable`1::GetEnumerator |
|
|
|
.property !T Current() |
|
{ |
|
.get instance !T ICSharpCode.Decompiler.Tests.TestCases.Pretty.Loops/CustomStructEnumeratorWithIDisposable`1::get_Current() |
|
} // end of property CustomStructEnumeratorWithIDisposable`1::Current |
|
} // end of class CustomStructEnumeratorWithIDisposable`1 |
|
|
|
.class sequential ansi sealed nested public beforefieldinit DataItem |
|
extends [mscorlib]System.ValueType |
|
{ |
|
.pack 0 |
|
.size 1 |
|
.field private int32 '<Property>k__BackingField' |
|
.custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) |
|
.method public hidebysig specialname |
|
instance int32 get_Property() cil managed |
|
{ |
|
.custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) |
|
// Code size 7 (0x7) |
|
.maxstack 8 |
|
IL_0000: ldarg.0 |
|
IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.Loops/DataItem::'<Property>k__BackingField' |
|
IL_0006: ret |
|
} // end of method DataItem::get_Property |
|
|
|
.method public hidebysig specialname |
|
instance void set_Property(int32 'value') cil managed |
|
{ |
|
.custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) |
|
// Code size 8 (0x8) |
|
.maxstack 8 |
|
IL_0000: ldarg.0 |
|
IL_0001: ldarg.1 |
|
IL_0002: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.Loops/DataItem::'<Property>k__BackingField' |
|
IL_0007: ret |
|
} // end of method DataItem::set_Property |
|
|
|
.method public hidebysig instance void |
|
TestCall() cil managed |
|
{ |
|
// Code size 1 (0x1) |
|
.maxstack 8 |
|
IL_0000: ret |
|
} // end of method DataItem::TestCall |
|
|
|
.property int32 Property() |
|
{ |
|
.set instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.Loops/DataItem::set_Property(int32) |
|
.get instance int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.Loops/DataItem::get_Property() |
|
} // end of property DataItem::Property |
|
} // end of class DataItem |
|
|
|
.class auto ansi nested public beforefieldinit Item |
|
extends [mscorlib]System.Object |
|
{ |
|
.method public hidebysig specialname rtspecialname |
|
instance void .ctor() cil managed |
|
{ |
|
// Code size 7 (0x7) |
|
.maxstack 8 |
|
IL_0000: ldarg.0 |
|
IL_0001: call instance void [mscorlib]System.Object::.ctor() |
|
IL_0006: ret |
|
} // end of method Item::.ctor |
|
|
|
} // end of class Item |
|
|
|
.class auto ansi sealed nested private beforefieldinit '<ForeachWithCapturedVariable>c__AnonStorey0' |
|
extends [mscorlib]System.Object |
|
{ |
|
.custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) |
|
.field assembly int32 c |
|
.method public hidebysig specialname rtspecialname |
|
instance void .ctor() cil managed |
|
{ |
|
// Code size 7 (0x7) |
|
.maxstack 8 |
|
IL_0000: ldarg.0 |
|
IL_0001: call instance void [mscorlib]System.Object::.ctor() |
|
IL_0006: ret |
|
} // end of method '<ForeachWithCapturedVariable>c__AnonStorey0'::.ctor |
|
|
|
.method assembly hidebysig instance bool |
|
'<>m__0'() cil managed |
|
{ |
|
// Code size 10 (0xa) |
|
.maxstack 8 |
|
IL_0000: ldarg.0 |
|
IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.Loops/'<ForeachWithCapturedVariable>c__AnonStorey0'::c |
|
IL_0006: ldc.i4.5 |
|
IL_0007: ceq |
|
IL_0009: ret |
|
} // end of method '<ForeachWithCapturedVariable>c__AnonStorey0'::'<>m__0' |
|
|
|
} // end of class '<ForeachWithCapturedVariable>c__AnonStorey0' |
|
|
|
.field private class [mscorlib]System.Collections.Generic.IEnumerable`1<string> alternatives |
|
.field private object someObject |
|
.method public hidebysig specialname rtspecialname |
|
instance void .ctor() cil managed |
|
{ |
|
// Code size 7 (0x7) |
|
.maxstack 8 |
|
IL_0000: ldarg.0 |
|
IL_0001: call instance void [mscorlib]System.Object::.ctor() |
|
IL_0006: ret |
|
} // end of method Loops::.ctor |
|
|
|
.method private hidebysig instance void |
|
TryGetItem(int32 id, |
|
[out] class ICSharpCode.Decompiler.Tests.TestCases.Pretty.Loops/Item& item) cil managed |
|
{ |
|
// Code size 4 (0x4) |
|
.maxstack 8 |
|
IL_0000: ldarg.2 |
|
IL_0001: ldnull |
|
IL_0002: stind.ref |
|
IL_0003: ret |
|
} // end of method Loops::TryGetItem |
|
|
|
.method private hidebysig static void Operation(int32& item) cil managed |
|
{ |
|
// Code size 1 (0x1) |
|
.maxstack 8 |
|
IL_0000: ret |
|
} // end of method Loops::Operation |
|
|
|
.method private hidebysig static void Operation(class [System.Core]System.Func`1<bool> f) cil managed |
|
{ |
|
// Code size 1 (0x1) |
|
.maxstack 8 |
|
IL_0000: ret |
|
} // end of method Loops::Operation |
|
|
|
.method public hidebysig instance void |
|
ForEachOnField() cil managed |
|
{ |
|
// Code size 59 (0x3b) |
|
.maxstack 10 |
|
.locals init (string V_0, |
|
class [mscorlib]System.Collections.Generic.IEnumerator`1<string> V_1) |
|
IL_0000: ldarg.0 |
|
IL_0001: ldfld class [mscorlib]System.Collections.Generic.IEnumerable`1<string> ICSharpCode.Decompiler.Tests.TestCases.Pretty.Loops::alternatives |
|
IL_0006: callvirt instance class [mscorlib]System.Collections.Generic.IEnumerator`1<!0> class [mscorlib]System.Collections.Generic.IEnumerable`1<string>::GetEnumerator() |
|
IL_000b: stloc.1 |
|
.try |
|
{ |
|
IL_000c: br IL_001f |
|
|
|
IL_0011: ldloc.1 |
|
IL_0012: callvirt instance !0 class [mscorlib]System.Collections.Generic.IEnumerator`1<string>::get_Current() |
|
IL_0017: stloc.0 |
|
IL_0018: ldloc.0 |
|
IL_0019: callvirt instance string [mscorlib]System.String::ToLower() |
|
IL_001e: pop |
|
IL_001f: ldloc.1 |
|
IL_0020: callvirt instance bool [mscorlib]System.Collections.IEnumerator::MoveNext() |
|
IL_0025: brtrue IL_0011 |
|
|
|
IL_002a: leave IL_003a |
|
|
|
} // end .try |
|
finally |
|
{ |
|
IL_002f: ldloc.1 |
|
IL_0030: brtrue.s IL_0033 |
|
|
|
IL_0032: endfinally |
|
IL_0033: ldloc.1 |
|
IL_0034: callvirt instance void [mscorlib]System.IDisposable::Dispose() |
|
IL_0039: endfinally |
|
} // end handler |
|
IL_003a: ret |
|
} // end of method Loops::ForEachOnField |
|
|
|
.method public hidebysig instance void |
|
ForEach(class [mscorlib]System.Collections.Generic.IEnumerable`1<string> alternatives) cil managed |
|
{ |
|
// Code size 54 (0x36) |
|
.maxstack 10 |
|
.locals init (string V_0, |
|
class [mscorlib]System.Collections.Generic.IEnumerator`1<string> V_1) |
|
IL_0000: ldarg.1 |
|
IL_0001: callvirt instance class [mscorlib]System.Collections.Generic.IEnumerator`1<!0> class [mscorlib]System.Collections.Generic.IEnumerable`1<string>::GetEnumerator() |
|
IL_0006: stloc.1 |
|
.try |
|
{ |
|
IL_0007: br IL_001a |
|
|
|
IL_000c: ldloc.1 |
|
IL_000d: callvirt instance !0 class [mscorlib]System.Collections.Generic.IEnumerator`1<string>::get_Current() |
|
IL_0012: stloc.0 |
|
IL_0013: ldloc.0 |
|
IL_0014: callvirt instance string [mscorlib]System.String::ToLower() |
|
IL_0019: pop |
|
IL_001a: ldloc.1 |
|
IL_001b: callvirt instance bool [mscorlib]System.Collections.IEnumerator::MoveNext() |
|
IL_0020: brtrue IL_000c |
|
|
|
IL_0025: leave IL_0035 |
|
|
|
} // end .try |
|
finally |
|
{ |
|
IL_002a: ldloc.1 |
|
IL_002b: brtrue.s IL_002e |
|
|
|
IL_002d: endfinally |
|
IL_002e: ldloc.1 |
|
IL_002f: callvirt instance void [mscorlib]System.IDisposable::Dispose() |
|
IL_0034: endfinally |
|
} // end handler |
|
IL_0035: ret |
|
} // end of method Loops::ForEach |
|
|
|
.method public hidebysig instance void |
|
ForEachOverList(class [mscorlib]System.Collections.Generic.List`1<string> list) cil managed |
|
{ |
|
// Code size 57 (0x39) |
|
.maxstack 10 |
|
.locals init (string V_0, |
|
valuetype [mscorlib]System.Collections.Generic.List`1/Enumerator<string> V_1) |
|
IL_0000: ldarg.1 |
|
IL_0001: callvirt instance valuetype [mscorlib]System.Collections.Generic.List`1/Enumerator<!0> class [mscorlib]System.Collections.Generic.List`1<string>::GetEnumerator() |
|
IL_0006: stloc.1 |
|
.try |
|
{ |
|
IL_0007: br IL_001b |
|
|
|
IL_000c: ldloca.s V_1 |
|
IL_000e: call instance !0 valuetype [mscorlib]System.Collections.Generic.List`1/Enumerator<string>::get_Current() |
|
IL_0013: stloc.0 |
|
IL_0014: ldloc.0 |
|
IL_0015: callvirt instance string [mscorlib]System.String::ToLower() |
|
IL_001a: pop |
|
IL_001b: ldloca.s V_1 |
|
IL_001d: call instance bool valuetype [mscorlib]System.Collections.Generic.List`1/Enumerator<string>::MoveNext() |
|
IL_0022: brtrue IL_000c |
|
|
|
IL_0027: leave IL_0038 |
|
|
|
} // end .try |
|
finally |
|
{ |
|
IL_002c: ldloc.1 |
|
IL_002d: box valuetype [mscorlib]System.Collections.Generic.List`1/Enumerator<string> |
|
IL_0032: callvirt instance void [mscorlib]System.IDisposable::Dispose() |
|
IL_0037: endfinally |
|
} // end handler |
|
IL_0038: ret |
|
} // end of method Loops::ForEachOverList |
|
|
|
.method public hidebysig instance void |
|
ForEachOverNonGenericEnumerable(class [mscorlib]System.Collections.IEnumerable enumerable) cil managed |
|
{ |
|
// Code size 61 (0x3d) |
|
.maxstack 10 |
|
.locals init (object V_0, |
|
class [mscorlib]System.Collections.IEnumerator V_1, |
|
class [mscorlib]System.IDisposable V_2) |
|
IL_0000: ldarg.1 |
|
IL_0001: callvirt instance class [mscorlib]System.Collections.IEnumerator [mscorlib]System.Collections.IEnumerable::GetEnumerator() |
|
IL_0006: stloc.1 |
|
.try |
|
{ |
|
IL_0007: br IL_001a |
|
|
|
IL_000c: ldloc.1 |
|
IL_000d: callvirt instance object [mscorlib]System.Collections.IEnumerator::get_Current() |
|
IL_0012: stloc.0 |
|
IL_0013: ldloc.0 |
|
IL_0014: callvirt instance string [mscorlib]System.Object::ToString() |
|
IL_0019: pop |
|
IL_001a: ldloc.1 |
|
IL_001b: callvirt instance bool [mscorlib]System.Collections.IEnumerator::MoveNext() |
|
IL_0020: brtrue IL_000c |
|
|
|
IL_0025: leave IL_003c |
|
|
|
} // end .try |
|
finally |
|
{ |
|
IL_002a: ldloc.1 |
|
IL_002b: isinst [mscorlib]System.IDisposable |
|
IL_0030: stloc.2 |
|
IL_0031: ldloc.2 |
|
IL_0032: brtrue.s IL_0035 |
|
|
|
IL_0034: endfinally |
|
IL_0035: ldloc.2 |
|
IL_0036: callvirt instance void [mscorlib]System.IDisposable::Dispose() |
|
IL_003b: endfinally |
|
} // end handler |
|
IL_003c: ret |
|
} // end of method Loops::ForEachOverNonGenericEnumerable |
|
|
|
.method public hidebysig instance void |
|
ForEachOverNonGenericEnumerableWithAutomaticCastValueType(class [mscorlib]System.Collections.IEnumerable enumerable) cil managed |
|
{ |
|
// Code size 67 (0x43) |
|
.maxstack 10 |
|
.locals init (int32 V_0, |
|
class [mscorlib]System.Collections.IEnumerator V_1, |
|
class [mscorlib]System.IDisposable V_2) |
|
IL_0000: ldarg.1 |
|
IL_0001: callvirt instance class [mscorlib]System.Collections.IEnumerator [mscorlib]System.Collections.IEnumerable::GetEnumerator() |
|
IL_0006: stloc.1 |
|
.try |
|
{ |
|
IL_0007: br IL_0020 |
|
|
|
IL_000c: ldloc.1 |
|
IL_000d: callvirt instance object [mscorlib]System.Collections.IEnumerator::get_Current() |
|
IL_0012: unbox.any [mscorlib]System.Int32 |
|
IL_0017: stloc.0 |
|
IL_0018: ldloca.s V_0 |
|
IL_001a: call instance string [mscorlib]System.Int32::ToString() |
|
IL_001f: pop |
|
IL_0020: ldloc.1 |
|
IL_0021: callvirt instance bool [mscorlib]System.Collections.IEnumerator::MoveNext() |
|
IL_0026: brtrue IL_000c |
|
|
|
IL_002b: leave IL_0042 |
|
|
|
} // end .try |
|
finally |
|
{ |
|
IL_0030: ldloc.1 |
|
IL_0031: isinst [mscorlib]System.IDisposable |
|
IL_0036: stloc.2 |
|
IL_0037: ldloc.2 |
|
IL_0038: brtrue.s IL_003b |
|
|
|
IL_003a: endfinally |
|
IL_003b: ldloc.2 |
|
IL_003c: callvirt instance void [mscorlib]System.IDisposable::Dispose() |
|
IL_0041: endfinally |
|
} // end handler |
|
IL_0042: ret |
|
} // end of method Loops::ForEachOverNonGenericEnumerableWithAutomaticCastValueType |
|
|
|
.method public hidebysig instance void |
|
ForEachOverNonGenericEnumerableWithAutomaticCastRefType(class [mscorlib]System.Collections.IEnumerable enumerable) cil managed |
|
{ |
|
// Code size 65 (0x41) |
|
.maxstack 9 |
|
.locals init (string V_0, |
|
class [mscorlib]System.Collections.IEnumerator V_1, |
|
class [mscorlib]System.IDisposable V_2) |
|
IL_0000: ldarg.1 |
|
IL_0001: callvirt instance class [mscorlib]System.Collections.IEnumerator [mscorlib]System.Collections.IEnumerable::GetEnumerator() |
|
IL_0006: stloc.1 |
|
.try |
|
{ |
|
IL_0007: br IL_001e |
|
|
|
IL_000c: ldloc.1 |
|
IL_000d: callvirt instance object [mscorlib]System.Collections.IEnumerator::get_Current() |
|
IL_0012: castclass [mscorlib]System.String |
|
IL_0017: stloc.0 |
|
IL_0018: ldloc.0 |
|
IL_0019: call void [mscorlib]System.Console::WriteLine(string) |
|
IL_001e: ldloc.1 |
|
IL_001f: callvirt instance bool [mscorlib]System.Collections.IEnumerator::MoveNext() |
|
IL_0024: brtrue IL_000c |
|
|
|
IL_0029: leave IL_0040 |
|
|
|
} // end .try |
|
finally |
|
{ |
|
IL_002e: ldloc.1 |
|
IL_002f: isinst [mscorlib]System.IDisposable |
|
IL_0034: stloc.2 |
|
IL_0035: ldloc.2 |
|
IL_0036: brtrue.s IL_0039 |
|
|
|
IL_0038: endfinally |
|
IL_0039: ldloc.2 |
|
IL_003a: callvirt instance void [mscorlib]System.IDisposable::Dispose() |
|
IL_003f: endfinally |
|
} // end handler |
|
IL_0040: ret |
|
} // end of method Loops::ForEachOverNonGenericEnumerableWithAutomaticCastRefType |
|
|
|
.method public hidebysig instance void |
|
ForEachOnCustomClassEnumerator(class ICSharpCode.Decompiler.Tests.TestCases.Pretty.Loops/CustomClassEnumerator e) cil managed |
|
{ |
|
// Code size 60 (0x3c) |
|
.maxstack 9 |
|
.locals init (object V_0, |
|
class ICSharpCode.Decompiler.Tests.TestCases.Pretty.Loops/CustomClassEnumerator V_1, |
|
class [mscorlib]System.IDisposable V_2) |
|
IL_0000: ldarg.1 |
|
IL_0001: callvirt instance class ICSharpCode.Decompiler.Tests.TestCases.Pretty.Loops/CustomClassEnumerator ICSharpCode.Decompiler.Tests.TestCases.Pretty.Loops/CustomClassEnumerator::GetEnumerator() |
|
IL_0006: stloc.1 |
|
.try |
|
{ |
|
IL_0007: br IL_0019 |
|
|
|
IL_000c: ldloc.1 |
|
IL_000d: callvirt instance object ICSharpCode.Decompiler.Tests.TestCases.Pretty.Loops/CustomClassEnumerator::get_Current() |
|
IL_0012: stloc.0 |
|
IL_0013: ldloc.0 |
|
IL_0014: call void [mscorlib]System.Console::WriteLine(object) |
|
IL_0019: ldloc.1 |
|
IL_001a: callvirt instance bool ICSharpCode.Decompiler.Tests.TestCases.Pretty.Loops/CustomClassEnumerator::MoveNext() |
|
IL_001f: brtrue IL_000c |
|
|
|
IL_0024: leave IL_003b |
|
|
|
} // end .try |
|
finally |
|
{ |
|
IL_0029: ldloc.1 |
|
IL_002a: isinst [mscorlib]System.IDisposable |
|
IL_002f: stloc.2 |
|
IL_0030: ldloc.2 |
|
IL_0031: brtrue.s IL_0034 |
|
|
|
IL_0033: endfinally |
|
IL_0034: ldloc.2 |
|
IL_0035: callvirt instance void [mscorlib]System.IDisposable::Dispose() |
|
IL_003a: endfinally |
|
} // end handler |
|
IL_003b: ret |
|
} // end of method Loops::ForEachOnCustomClassEnumerator |
|
|
|
.method public hidebysig instance void |
|
ForEachOnGenericCustomClassEnumerator<T>(class ICSharpCode.Decompiler.Tests.TestCases.Pretty.Loops/CustomClassEnumerator`1<!!T> e) cil managed |
|
{ |
|
// Code size 65 (0x41) |
|
.maxstack 9 |
|
.locals init (!!T V_0, |
|
class ICSharpCode.Decompiler.Tests.TestCases.Pretty.Loops/CustomClassEnumerator`1<!!T> V_1, |
|
class [mscorlib]System.IDisposable V_2) |
|
IL_0000: ldarg.1 |
|
IL_0001: callvirt instance class ICSharpCode.Decompiler.Tests.TestCases.Pretty.Loops/CustomClassEnumerator`1<!0> class ICSharpCode.Decompiler.Tests.TestCases.Pretty.Loops/CustomClassEnumerator`1<!!T>::GetEnumerator() |
|
IL_0006: stloc.1 |
|
.try |
|
{ |
|
IL_0007: br IL_001e |
|
|
|
IL_000c: ldloc.1 |
|
IL_000d: callvirt instance !0 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.Loops/CustomClassEnumerator`1<!!T>::get_Current() |
|
IL_0012: stloc.0 |
|
IL_0013: ldloc.0 |
|
IL_0014: box !!T |
|
IL_0019: call void [mscorlib]System.Console::WriteLine(object) |
|
IL_001e: ldloc.1 |
|
IL_001f: callvirt instance bool class ICSharpCode.Decompiler.Tests.TestCases.Pretty.Loops/CustomClassEnumerator`1<!!T>::MoveNext() |
|
IL_0024: brtrue IL_000c |
|
|
|
IL_0029: leave IL_0040 |
|
|
|
} // end .try |
|
finally |
|
{ |
|
IL_002e: ldloc.1 |
|
IL_002f: isinst [mscorlib]System.IDisposable |
|
IL_0034: stloc.2 |
|
IL_0035: ldloc.2 |
|
IL_0036: brtrue.s IL_0039 |
|
|
|
IL_0038: endfinally |
|
IL_0039: ldloc.2 |
|
IL_003a: callvirt instance void [mscorlib]System.IDisposable::Dispose() |
|
IL_003f: endfinally |
|
} // end handler |
|
IL_0040: ret |
|
} // end of method Loops::ForEachOnGenericCustomClassEnumerator |
|
|
|
.method public hidebysig instance void |
|
ForEachOnCustomClassEnumeratorWithIDisposable(class ICSharpCode.Decompiler.Tests.TestCases.Pretty.Loops/CustomClassEnumeratorWithIDisposable e) cil managed |
|
{ |
|
// Code size 53 (0x35) |
|
.maxstack 9 |
|
.locals init (object V_0, |
|
class ICSharpCode.Decompiler.Tests.TestCases.Pretty.Loops/CustomClassEnumeratorWithIDisposable V_1) |
|
IL_0000: ldarg.1 |
|
IL_0001: callvirt instance class ICSharpCode.Decompiler.Tests.TestCases.Pretty.Loops/CustomClassEnumeratorWithIDisposable ICSharpCode.Decompiler.Tests.TestCases.Pretty.Loops/CustomClassEnumeratorWithIDisposable::GetEnumerator() |
|
IL_0006: stloc.1 |
|
.try |
|
{ |
|
IL_0007: br IL_0019 |
|
|
|
IL_000c: ldloc.1 |
|
IL_000d: callvirt instance object ICSharpCode.Decompiler.Tests.TestCases.Pretty.Loops/CustomClassEnumeratorWithIDisposable::get_Current() |
|
IL_0012: stloc.0 |
|
IL_0013: ldloc.0 |
|
IL_0014: call void [mscorlib]System.Console::WriteLine(object) |
|
IL_0019: ldloc.1 |
|
IL_001a: callvirt instance bool ICSharpCode.Decompiler.Tests.TestCases.Pretty.Loops/CustomClassEnumeratorWithIDisposable::MoveNext() |
|
IL_001f: brtrue IL_000c |
|
|
|
IL_0024: leave IL_0034 |
|
|
|
} // end .try |
|
finally |
|
{ |
|
IL_0029: ldloc.1 |
|
IL_002a: brtrue.s IL_002d |
|
|
|
IL_002c: endfinally |
|
IL_002d: ldloc.1 |
|
IL_002e: callvirt instance void [mscorlib]System.IDisposable::Dispose() |
|
IL_0033: endfinally |
|
} // end handler |
|
IL_0034: ret |
|
} // end of method Loops::ForEachOnCustomClassEnumeratorWithIDisposable |
|
|
|
.method public hidebysig instance void |
|
ForEachOnCustomStructEnumeratorWithIDisposable(valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.Loops/CustomStructEnumeratorWithIDisposable e) cil managed |
|
{ |
|
// Code size 57 (0x39) |
|
.maxstack 9 |
|
.locals init (object V_0, |
|
valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.Loops/CustomStructEnumeratorWithIDisposable V_1) |
|
IL_0000: ldarga.s e |
|
IL_0002: call instance valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.Loops/CustomStructEnumeratorWithIDisposable ICSharpCode.Decompiler.Tests.TestCases.Pretty.Loops/CustomStructEnumeratorWithIDisposable::GetEnumerator() |
|
IL_0007: stloc.1 |
|
.try |
|
{ |
|
IL_0008: br IL_001b |
|
|
|
IL_000d: ldloca.s V_1 |
|
IL_000f: call instance object ICSharpCode.Decompiler.Tests.TestCases.Pretty.Loops/CustomStructEnumeratorWithIDisposable::get_Current() |
|
IL_0014: stloc.0 |
|
IL_0015: ldloc.0 |
|
IL_0016: call void [mscorlib]System.Console::WriteLine(object) |
|
IL_001b: ldloca.s V_1 |
|
IL_001d: call instance bool ICSharpCode.Decompiler.Tests.TestCases.Pretty.Loops/CustomStructEnumeratorWithIDisposable::MoveNext() |
|
IL_0022: brtrue IL_000d |
|
|
|
IL_0027: leave IL_0038 |
|
|
|
} // end .try |
|
finally |
|
{ |
|
IL_002c: ldloc.1 |
|
IL_002d: box ICSharpCode.Decompiler.Tests.TestCases.Pretty.Loops/CustomStructEnumeratorWithIDisposable |
|
IL_0032: callvirt instance void [mscorlib]System.IDisposable::Dispose() |
|
IL_0037: endfinally |
|
} // end handler |
|
IL_0038: ret |
|
} // end of method Loops::ForEachOnCustomStructEnumeratorWithIDisposable |
|
|
|
.method public hidebysig instance void |
|
ForEachOnGenericCustomClassEnumeratorWithIDisposable<T>(class ICSharpCode.Decompiler.Tests.TestCases.Pretty.Loops/CustomClassEnumeratorWithIDisposable`1<!!T> e) cil managed |
|
{ |
|
// Code size 58 (0x3a) |
|
.maxstack 9 |
|
.locals init (!!T V_0, |
|
class ICSharpCode.Decompiler.Tests.TestCases.Pretty.Loops/CustomClassEnumeratorWithIDisposable`1<!!T> V_1) |
|
IL_0000: ldarg.1 |
|
IL_0001: callvirt instance class ICSharpCode.Decompiler.Tests.TestCases.Pretty.Loops/CustomClassEnumeratorWithIDisposable`1<!0> class ICSharpCode.Decompiler.Tests.TestCases.Pretty.Loops/CustomClassEnumeratorWithIDisposable`1<!!T>::GetEnumerator() |
|
IL_0006: stloc.1 |
|
.try |
|
{ |
|
IL_0007: br IL_001e |
|
|
|
IL_000c: ldloc.1 |
|
IL_000d: callvirt instance !0 class ICSharpCode.Decompiler.Tests.TestCases.Pretty.Loops/CustomClassEnumeratorWithIDisposable`1<!!T>::get_Current() |
|
IL_0012: stloc.0 |
|
IL_0013: ldloc.0 |
|
IL_0014: box !!T |
|
IL_0019: call void [mscorlib]System.Console::WriteLine(object) |
|
IL_001e: ldloc.1 |
|
IL_001f: callvirt instance bool class ICSharpCode.Decompiler.Tests.TestCases.Pretty.Loops/CustomClassEnumeratorWithIDisposable`1<!!T>::MoveNext() |
|
IL_0024: brtrue IL_000c |
|
|
|
IL_0029: leave IL_0039 |
|
|
|
} // end .try |
|
finally |
|
{ |
|
IL_002e: ldloc.1 |
|
IL_002f: brtrue.s IL_0032 |
|
|
|
IL_0031: endfinally |
|
IL_0032: ldloc.1 |
|
IL_0033: callvirt instance void [mscorlib]System.IDisposable::Dispose() |
|
IL_0038: endfinally |
|
} // end handler |
|
IL_0039: ret |
|
} // end of method Loops::ForEachOnGenericCustomClassEnumeratorWithIDisposable |
|
|
|
.method public hidebysig instance void |
|
ForEachOnGenericCustomStructEnumeratorWithIDisposable<T>(valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.Loops/CustomStructEnumeratorWithIDisposable`1<!!T> e) cil managed |
|
{ |
|
// Code size 62 (0x3e) |
|
.maxstack 9 |
|
.locals init (!!T V_0, |
|
valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.Loops/CustomStructEnumeratorWithIDisposable`1<!!T> V_1) |
|
IL_0000: ldarga.s e |
|
IL_0002: call instance valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.Loops/CustomStructEnumeratorWithIDisposable`1<!0> valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.Loops/CustomStructEnumeratorWithIDisposable`1<!!T>::GetEnumerator() |
|
IL_0007: stloc.1 |
|
.try |
|
{ |
|
IL_0008: br IL_0020 |
|
|
|
IL_000d: ldloca.s V_1 |
|
IL_000f: call instance !0 valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.Loops/CustomStructEnumeratorWithIDisposable`1<!!T>::get_Current() |
|
IL_0014: stloc.0 |
|
IL_0015: ldloc.0 |
|
IL_0016: box !!T |
|
IL_001b: call void [mscorlib]System.Console::WriteLine(object) |
|
IL_0020: ldloca.s V_1 |
|
IL_0022: call instance bool valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.Loops/CustomStructEnumeratorWithIDisposable`1<!!T>::MoveNext() |
|
IL_0027: brtrue IL_000d |
|
|
|
IL_002c: leave IL_003d |
|
|
|
} // end .try |
|
finally |
|
{ |
|
IL_0031: ldloc.1 |
|
IL_0032: box valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.Loops/CustomStructEnumeratorWithIDisposable`1<!!T> |
|
IL_0037: callvirt instance void [mscorlib]System.IDisposable::Dispose() |
|
IL_003c: endfinally |
|
} // end handler |
|
IL_003d: ret |
|
} // end of method Loops::ForEachOnGenericCustomStructEnumeratorWithIDisposable |
|
|
|
.method public hidebysig static void NonGenericForeachWithReturnFallbackTest(class [mscorlib]System.Collections.IEnumerable e) cil managed |
|
{ |
|
// Code size 97 (0x61) |
|
.maxstack 14 |
|
.locals init (class [mscorlib]System.Collections.IEnumerator V_0, |
|
object V_1, |
|
class [mscorlib]System.IDisposable V_2) |
|
IL_0000: ldstr "NonGenericForeachWithReturnFallback:" |
|
IL_0005: call void [mscorlib]System.Console::WriteLine(string) |
|
IL_000a: ldarg.0 |
|
IL_000b: callvirt instance class [mscorlib]System.Collections.IEnumerator [mscorlib]System.Collections.IEnumerable::GetEnumerator() |
|
IL_0010: stloc.0 |
|
.try |
|
{ |
|
IL_0011: ldstr "MoveNext" |
|
IL_0016: call void [mscorlib]System.Console::WriteLine(string) |
|
IL_001b: ldloc.0 |
|
IL_001c: callvirt instance bool [mscorlib]System.Collections.IEnumerator::MoveNext() |
|
IL_0021: brfalse IL_003d |
|
|
|
IL_0026: ldloc.0 |
|
IL_0027: callvirt instance object [mscorlib]System.Collections.IEnumerator::get_Current() |
|
IL_002c: stloc.1 |
|
IL_002d: ldstr "current: " |
|
IL_0032: ldloc.1 |
|
IL_0033: call string [mscorlib]System.String::Concat(object, |
|
object) |
|
IL_0038: call void [mscorlib]System.Console::WriteLine(string) |
|
IL_003d: leave IL_0056 |
|
|
|
} // end .try |
|
finally |
|
{ |
|
IL_0042: ldloc.0 |
|
IL_0043: isinst [mscorlib]System.IDisposable |
|
IL_0048: stloc.2 |
|
IL_0049: ldloc.2 |
|
IL_004a: brfalse IL_0055 |
|
|
|
IL_004f: ldloc.2 |
|
IL_0050: callvirt instance void [mscorlib]System.IDisposable::Dispose() |
|
IL_0055: endfinally |
|
} // end handler |
|
IL_0056: ldstr "After finally!" |
|
IL_005b: call void [mscorlib]System.Console::WriteLine(string) |
|
IL_0060: ret |
|
} // end of method Loops::NonGenericForeachWithReturnFallbackTest |
|
|
|
.method public hidebysig static void ForeachWithRefUsage(class [mscorlib]System.Collections.Generic.List`1<int32> items) cil managed |
|
{ |
|
// Code size 59 (0x3b) |
|
.maxstack 9 |
|
.locals init (int32 V_0, |
|
valuetype [mscorlib]System.Collections.Generic.List`1/Enumerator<int32> V_1, |
|
int32 V_2) |
|
IL_0000: ldarg.0 |
|
IL_0001: callvirt instance valuetype [mscorlib]System.Collections.Generic.List`1/Enumerator<!0> class [mscorlib]System.Collections.Generic.List`1<int32>::GetEnumerator() |
|
IL_0006: stloc.1 |
|
.try |
|
{ |
|
IL_0007: br IL_001d |
|
|
|
IL_000c: ldloca.s V_1 |
|
IL_000e: call instance !0 valuetype [mscorlib]System.Collections.Generic.List`1/Enumerator<int32>::get_Current() |
|
IL_0013: stloc.0 |
|
IL_0014: ldloc.0 |
|
IL_0015: stloc.2 |
|
IL_0016: ldloca.s V_2 |
|
IL_0018: call void ICSharpCode.Decompiler.Tests.TestCases.Pretty.Loops::Operation(int32&) |
|
IL_001d: ldloca.s V_1 |
|
IL_001f: call instance bool valuetype [mscorlib]System.Collections.Generic.List`1/Enumerator<int32>::MoveNext() |
|
IL_0024: brtrue IL_000c |
|
|
|
IL_0029: leave IL_003a |
|
|
|
} // end .try |
|
finally |
|
{ |
|
IL_002e: ldloc.1 |
|
IL_002f: box valuetype [mscorlib]System.Collections.Generic.List`1/Enumerator<int32> |
|
IL_0034: callvirt instance void [mscorlib]System.IDisposable::Dispose() |
|
IL_0039: endfinally |
|
} // end handler |
|
IL_003a: ret |
|
} // end of method Loops::ForeachWithRefUsage |
|
|
|
.method public hidebysig static void ForeachWithCapturedVariable(class [mscorlib]System.Collections.Generic.List`1<int32> items) cil managed |
|
{ |
|
// Code size 80 (0x50) |
|
.maxstack 10 |
|
.locals init (int32 V_0, |
|
valuetype [mscorlib]System.Collections.Generic.List`1/Enumerator<int32> V_1, |
|
class ICSharpCode.Decompiler.Tests.TestCases.Pretty.Loops/'<ForeachWithCapturedVariable>c__AnonStorey0' V_2) |
|
IL_0000: ldarg.0 |
|
IL_0001: callvirt instance valuetype [mscorlib]System.Collections.Generic.List`1/Enumerator<!0> class [mscorlib]System.Collections.Generic.List`1<int32>::GetEnumerator() |
|
IL_0006: stloc.1 |
|
.try |
|
{ |
|
IL_0007: br IL_0032 |
|
|
|
IL_000c: ldloca.s V_1 |
|
IL_000e: call instance !0 valuetype [mscorlib]System.Collections.Generic.List`1/Enumerator<int32>::get_Current() |
|
IL_0013: stloc.0 |
|
IL_0014: newobj instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.Loops/'<ForeachWithCapturedVariable>c__AnonStorey0'::.ctor() |
|
IL_0019: stloc.2 |
|
IL_001a: ldloc.2 |
|
IL_001b: ldloc.0 |
|
IL_001c: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.Loops/'<ForeachWithCapturedVariable>c__AnonStorey0'::c |
|
IL_0021: ldloc.2 |
|
IL_0022: ldftn instance bool ICSharpCode.Decompiler.Tests.TestCases.Pretty.Loops/'<ForeachWithCapturedVariable>c__AnonStorey0'::'<>m__0'() |
|
IL_0028: newobj instance void class [System.Core]System.Func`1<bool>::.ctor(object, |
|
native int) |
|
IL_002d: call void ICSharpCode.Decompiler.Tests.TestCases.Pretty.Loops::Operation(class [System.Core]System.Func`1<bool>) |
|
IL_0032: ldloca.s V_1 |
|
IL_0034: call instance bool valuetype [mscorlib]System.Collections.Generic.List`1/Enumerator<int32>::MoveNext() |
|
IL_0039: brtrue IL_000c |
|
|
|
IL_003e: leave IL_004f |
|
|
|
} // end .try |
|
finally |
|
{ |
|
IL_0043: ldloc.1 |
|
IL_0044: box valuetype [mscorlib]System.Collections.Generic.List`1/Enumerator<int32> |
|
IL_0049: callvirt instance void [mscorlib]System.IDisposable::Dispose() |
|
IL_004e: endfinally |
|
} // end handler |
|
IL_004f: ret |
|
} // end of method Loops::ForeachWithCapturedVariable |
|
|
|
.method public hidebysig static !!T LastOrDefault<T>(class [mscorlib]System.Collections.Generic.IEnumerable`1<!!T> items) cil managed |
|
{ |
|
// Code size 60 (0x3c) |
|
.maxstack 9 |
|
.locals init (!!T V_0, |
|
!!T V_1, |
|
class [mscorlib]System.Collections.Generic.IEnumerator`1<!!T> V_2, |
|
!!T V_3) |
|
IL_0000: ldloca.s V_3 |
|
IL_0002: initobj !!T |
|
IL_0008: ldloc.3 |
|
IL_0009: stloc.0 |
|
IL_000a: ldarg.0 |
|
IL_000b: callvirt instance class [mscorlib]System.Collections.Generic.IEnumerator`1<!0> class [mscorlib]System.Collections.Generic.IEnumerable`1<!!T>::GetEnumerator() |
|
IL_0010: stloc.2 |
|
.try |
|
{ |
|
IL_0011: br IL_001f |
|
|
|
IL_0016: ldloc.2 |
|
IL_0017: callvirt instance !0 class [mscorlib]System.Collections.Generic.IEnumerator`1<!!T>::get_Current() |
|
IL_001c: stloc.1 |
|
IL_001d: ldloc.1 |
|
IL_001e: stloc.0 |
|
IL_001f: ldloc.2 |
|
IL_0020: callvirt instance bool [mscorlib]System.Collections.IEnumerator::MoveNext() |
|
IL_0025: brtrue IL_0016 |
|
|
|
IL_002a: leave IL_003a |
|
|
|
} // end .try |
|
finally |
|
{ |
|
IL_002f: ldloc.2 |
|
IL_0030: brtrue.s IL_0033 |
|
|
|
IL_0032: endfinally |
|
IL_0033: ldloc.2 |
|
IL_0034: callvirt instance void [mscorlib]System.IDisposable::Dispose() |
|
IL_0039: endfinally |
|
} // end handler |
|
IL_003a: ldloc.0 |
|
IL_003b: ret |
|
} // end of method Loops::LastOrDefault |
|
|
|
.method public hidebysig instance void |
|
ForEachOverArray(string[] 'array') cil managed |
|
{ |
|
// Code size 49 (0x31) |
|
.maxstack 9 |
|
.locals init (string V_0, |
|
string[] V_1, |
|
int32 V_2) |
|
IL_0000: ldarg.1 |
|
IL_0001: stloc.1 |
|
IL_0002: ldc.i4.0 |
|
IL_0003: stloc.2 |
|
IL_0004: br IL_0027 |
|
|
|
IL_0009: ldloc.1 |
|
IL_000a: ldloc.2 |
|
IL_000b: ldelem.ref |
|
IL_000c: stloc.0 |
|
IL_000d: ldloc.0 |
|
IL_000e: callvirt instance string [mscorlib]System.String::ToLower() |
|
IL_0013: ldloc.0 |
|
IL_0014: callvirt instance string [mscorlib]System.String::ToUpper() |
|
IL_0019: call string [mscorlib]System.String::Concat(string, |
|
string) |
|
IL_001e: call void [mscorlib]System.Console::WriteLine(string) |
|
IL_0023: ldloc.2 |
|
IL_0024: ldc.i4.1 |
|
IL_0025: add |
|
IL_0026: stloc.2 |
|
IL_0027: ldloc.2 |
|
IL_0028: ldloc.1 |
|
IL_0029: ldlen |
|
IL_002a: conv.i4 |
|
IL_002b: blt IL_0009 |
|
|
|
IL_0030: ret |
|
} // end of method Loops::ForEachOverArray |
|
|
|
.method public hidebysig instance void |
|
ForEachOverArrayOfPointers(int32*[] 'array') cil managed |
|
{ |
|
// Code size 59 (0x3b) |
|
.maxstack 5 |
|
.locals init (int32* V_0, |
|
int32*[] V_1, |
|
int32 V_2) |
|
IL_0000: ldarg.1 |
|
IL_0001: stloc.1 |
|
IL_0002: ldc.i4.0 |
|
IL_0003: stloc.2 |
|
IL_0004: br IL_0031 |
|
|
|
IL_0009: ldloc.1 |
|
IL_000a: ldloc.2 |
|
IL_000b: ldelem.i |
|
IL_000c: stloc.0 |
|
IL_000d: ldloc.0 |
|
IL_000e: newobj instance void [mscorlib]System.IntPtr::.ctor(void*) |
|
IL_0013: box [mscorlib]System.IntPtr |
|
IL_0018: call void [mscorlib]System.Console::WriteLine(object) |
|
IL_001d: ldloc.0 |
|
IL_001e: newobj instance void [mscorlib]System.IntPtr::.ctor(void*) |
|
IL_0023: box [mscorlib]System.IntPtr |
|
IL_0028: call void [mscorlib]System.Console::WriteLine(object) |
|
IL_002d: ldloc.2 |
|
IL_002e: ldc.i4.1 |
|
IL_002f: add |
|
IL_0030: stloc.2 |
|
IL_0031: ldloc.2 |
|
IL_0032: ldloc.1 |
|
IL_0033: ldlen |
|
IL_0034: conv.i4 |
|
IL_0035: blt IL_0009 |
|
|
|
IL_003a: ret |
|
} // end of method Loops::ForEachOverArrayOfPointers |
|
|
|
.method public hidebysig instance void |
|
ForEachBreakWhenFound(string name, |
|
valuetype [mscorlib]System.StringComparison& output) cil managed |
|
{ |
|
// Code size 103 (0x67) |
|
.maxstack 13 |
|
.locals init (int32 V_0, |
|
class [mscorlib]System.Collections.IEnumerator V_1, |
|
class [mscorlib]System.IDisposable V_2) |
|
IL_0000: ldtoken [mscorlib]System.StringComparison |
|
IL_0005: call class [mscorlib]System.Type [mscorlib]System.Type::GetTypeFromHandle(valuetype [mscorlib]System.RuntimeTypeHandle) |
|
IL_000a: call class [mscorlib]System.Array [mscorlib]System.Enum::GetValues(class [mscorlib]System.Type) |
|
IL_000f: callvirt instance class [mscorlib]System.Collections.IEnumerator [mscorlib]System.Array::GetEnumerator() |
|
IL_0014: stloc.1 |
|
.try |
|
{ |
|
IL_0015: br IL_0044 |
|
|
|
IL_001a: ldloc.1 |
|
IL_001b: callvirt instance object [mscorlib]System.Collections.IEnumerator::get_Current() |
|
IL_0020: unbox.any [mscorlib]System.Int32 |
|
IL_0025: stloc.0 |
|
IL_0026: ldloc.0 |
|
IL_0027: box [mscorlib]System.StringComparison |
|
IL_002c: callvirt instance string [mscorlib]System.Enum::ToString() |
|
IL_0031: ldarg.1 |
|
IL_0032: call bool [mscorlib]System.String::op_Equality(string, |
|
string) |
|
IL_0037: brfalse IL_0044 |
|
|
|
IL_003c: ldarg.2 |
|
IL_003d: ldloc.0 |
|
IL_003e: stind.i4 |
|
IL_003f: br IL_004f |
|
|
|
IL_0044: ldloc.1 |
|
IL_0045: callvirt instance bool [mscorlib]System.Collections.IEnumerator::MoveNext() |
|
IL_004a: brtrue IL_001a |
|
|
|
IL_004f: leave IL_0066 |
|
|
|
} // end .try |
|
finally |
|
{ |
|
IL_0054: ldloc.1 |
|
IL_0055: isinst [mscorlib]System.IDisposable |
|
IL_005a: stloc.2 |
|
IL_005b: ldloc.2 |
|
IL_005c: brtrue.s IL_005f |
|
|
|
IL_005e: endfinally |
|
IL_005f: ldloc.2 |
|
IL_0060: callvirt instance void [mscorlib]System.IDisposable::Dispose() |
|
IL_0065: endfinally |
|
} // end handler |
|
IL_0066: ret |
|
} // end of method Loops::ForEachBreakWhenFound |
|
|
|
.method public hidebysig instance void |
|
ForEachOverListOfStruct(class [mscorlib]System.Collections.Generic.List`1<valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.Loops/DataItem> items, |
|
int32 'value') cil managed |
|
{ |
|
// Code size 60 (0x3c) |
|
.maxstack 10 |
|
.locals init (valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.Loops/DataItem V_0, |
|
valuetype [mscorlib]System.Collections.Generic.List`1/Enumerator<valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.Loops/DataItem> V_1, |
|
valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.Loops/DataItem V_2) |
|
IL_0000: ldarg.1 |
|
IL_0001: callvirt instance valuetype [mscorlib]System.Collections.Generic.List`1/Enumerator<!0> class [mscorlib]System.Collections.Generic.List`1<valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.Loops/DataItem>::GetEnumerator() |
|
IL_0006: stloc.1 |
|
.try |
|
{ |
|
IL_0007: br IL_001e |
|
|
|
IL_000c: ldloca.s V_1 |
|
IL_000e: call instance !0 valuetype [mscorlib]System.Collections.Generic.List`1/Enumerator<valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.Loops/DataItem>::get_Current() |
|
IL_0013: stloc.0 |
|
IL_0014: ldloc.0 |
|
IL_0015: stloc.2 |
|
IL_0016: ldloca.s V_2 |
|
IL_0018: ldarg.2 |
|
IL_0019: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.Loops/DataItem::set_Property(int32) |
|
IL_001e: ldloca.s V_1 |
|
IL_0020: call instance bool valuetype [mscorlib]System.Collections.Generic.List`1/Enumerator<valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.Loops/DataItem>::MoveNext() |
|
IL_0025: brtrue IL_000c |
|
|
|
IL_002a: leave IL_003b |
|
|
|
} // end .try |
|
finally |
|
{ |
|
IL_002f: ldloc.1 |
|
IL_0030: box valuetype [mscorlib]System.Collections.Generic.List`1/Enumerator<valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.Loops/DataItem> |
|
IL_0035: callvirt instance void [mscorlib]System.IDisposable::Dispose() |
|
IL_003a: endfinally |
|
} // end handler |
|
IL_003b: ret |
|
} // end of method Loops::ForEachOverListOfStruct |
|
|
|
.method public hidebysig instance void |
|
ForEachOverListOfStruct2(class [mscorlib]System.Collections.Generic.List`1<valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.Loops/DataItem> items, |
|
int32 'value') cil managed |
|
{ |
|
// Code size 67 (0x43) |
|
.maxstack 12 |
|
.locals init (valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.Loops/DataItem V_0, |
|
valuetype [mscorlib]System.Collections.Generic.List`1/Enumerator<valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.Loops/DataItem> V_1, |
|
valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.Loops/DataItem V_2) |
|
IL_0000: ldarg.1 |
|
IL_0001: callvirt instance valuetype [mscorlib]System.Collections.Generic.List`1/Enumerator<!0> class [mscorlib]System.Collections.Generic.List`1<valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.Loops/DataItem>::GetEnumerator() |
|
IL_0006: stloc.1 |
|
.try |
|
{ |
|
IL_0007: br IL_0025 |
|
|
|
IL_000c: ldloca.s V_1 |
|
IL_000e: call instance !0 valuetype [mscorlib]System.Collections.Generic.List`1/Enumerator<valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.Loops/DataItem>::get_Current() |
|
IL_0013: stloc.0 |
|
IL_0014: ldloc.0 |
|
IL_0015: stloc.2 |
|
IL_0016: ldloca.s V_2 |
|
IL_0018: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.Loops/DataItem::TestCall() |
|
IL_001d: ldloca.s V_2 |
|
IL_001f: ldarg.2 |
|
IL_0020: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.Loops/DataItem::set_Property(int32) |
|
IL_0025: ldloca.s V_1 |
|
IL_0027: call instance bool valuetype [mscorlib]System.Collections.Generic.List`1/Enumerator<valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.Loops/DataItem>::MoveNext() |
|
IL_002c: brtrue IL_000c |
|
|
|
IL_0031: leave IL_0042 |
|
|
|
} // end .try |
|
finally |
|
{ |
|
IL_0036: ldloc.1 |
|
IL_0037: box valuetype [mscorlib]System.Collections.Generic.List`1/Enumerator<valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.Loops/DataItem> |
|
IL_003c: callvirt instance void [mscorlib]System.IDisposable::Dispose() |
|
IL_0041: endfinally |
|
} // end handler |
|
IL_0042: ret |
|
} // end of method Loops::ForEachOverListOfStruct2 |
|
|
|
.method public hidebysig instance void |
|
ForEachOverListOfStruct3(class [mscorlib]System.Collections.Generic.List`1<valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.Loops/DataItem> items, |
|
int32 'value') cil managed |
|
{ |
|
// Code size 57 (0x39) |
|
.maxstack 10 |
|
.locals init (valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.Loops/DataItem V_0, |
|
valuetype [mscorlib]System.Collections.Generic.List`1/Enumerator<valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.Loops/DataItem> V_1) |
|
IL_0000: ldarg.1 |
|
IL_0001: callvirt instance valuetype [mscorlib]System.Collections.Generic.List`1/Enumerator<!0> class [mscorlib]System.Collections.Generic.List`1<valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.Loops/DataItem>::GetEnumerator() |
|
IL_0006: stloc.1 |
|
.try |
|
{ |
|
IL_0007: br IL_001b |
|
|
|
IL_000c: ldloca.s V_1 |
|
IL_000e: call instance !0 valuetype [mscorlib]System.Collections.Generic.List`1/Enumerator<valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.Loops/DataItem>::get_Current() |
|
IL_0013: stloc.0 |
|
IL_0014: ldloca.s V_0 |
|
IL_0016: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.Loops/DataItem::TestCall() |
|
IL_001b: ldloca.s V_1 |
|
IL_001d: call instance bool valuetype [mscorlib]System.Collections.Generic.List`1/Enumerator<valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.Loops/DataItem>::MoveNext() |
|
IL_0022: brtrue IL_000c |
|
|
|
IL_0027: leave IL_0038 |
|
|
|
} // end .try |
|
finally |
|
{ |
|
IL_002c: ldloc.1 |
|
IL_002d: box valuetype [mscorlib]System.Collections.Generic.List`1/Enumerator<valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.Loops/DataItem> |
|
IL_0032: callvirt instance void [mscorlib]System.IDisposable::Dispose() |
|
IL_0037: endfinally |
|
} // end handler |
|
IL_0038: ret |
|
} // end of method Loops::ForEachOverListOfStruct3 |
|
|
|
.method public hidebysig instance void |
|
ForOverArray(string[] 'array') cil managed |
|
{ |
|
// Code size 30 (0x1e) |
|
.maxstack 5 |
|
.locals init (int32 V_0) |
|
IL_0000: ldc.i4.0 |
|
IL_0001: stloc.0 |
|
IL_0002: br IL_0014 |
|
|
|
IL_0007: ldarg.1 |
|
IL_0008: ldloc.0 |
|
IL_0009: ldelem.ref |
|
IL_000a: callvirt instance string [mscorlib]System.String::ToLower() |
|
IL_000f: pop |
|
IL_0010: ldloc.0 |
|
IL_0011: ldc.i4.1 |
|
IL_0012: add |
|
IL_0013: stloc.0 |
|
IL_0014: ldloc.0 |
|
IL_0015: ldarg.1 |
|
IL_0016: ldlen |
|
IL_0017: conv.i4 |
|
IL_0018: blt IL_0007 |
|
|
|
IL_001d: ret |
|
} // end of method Loops::ForOverArray |
|
|
|
.method public hidebysig instance void |
|
NoForeachOverArray(string[] 'array') cil managed |
|
{ |
|
// Code size 39 (0x27) |
|
.maxstack 4 |
|
.locals init (int32 V_0, |
|
string V_1) |
|
IL_0000: ldc.i4.0 |
|
IL_0001: stloc.0 |
|
IL_0002: br IL_001d |
|
|
|
IL_0007: ldarg.1 |
|
IL_0008: ldloc.0 |
|
IL_0009: ldelem.ref |
|
IL_000a: stloc.1 |
|
IL_000b: ldloc.0 |
|
IL_000c: ldc.i4.5 |
|
IL_000d: rem |
|
IL_000e: brtrue IL_0019 |
|
|
|
IL_0013: ldloc.1 |
|
IL_0014: call void [mscorlib]System.Console::WriteLine(string) |
|
IL_0019: ldloc.0 |
|
IL_001a: ldc.i4.1 |
|
IL_001b: add |
|
IL_001c: stloc.0 |
|
IL_001d: ldloc.0 |
|
IL_001e: ldarg.1 |
|
IL_001f: ldlen |
|
IL_0020: conv.i4 |
|
IL_0021: blt IL_0007 |
|
|
|
IL_0026: ret |
|
} // end of method Loops::NoForeachOverArray |
|
|
|
.method public hidebysig instance void |
|
NestedLoops() cil managed |
|
{ |
|
// Code size 71 (0x47) |
|
.maxstack 5 |
|
.locals init (int32 V_0, |
|
int32 V_1) |
|
IL_0000: ldc.i4.0 |
|
IL_0001: stloc.0 |
|
IL_0002: br IL_003e |
|
|
|
IL_0007: ldloc.0 |
|
IL_0008: ldc.i4.2 |
|
IL_0009: rem |
|
IL_000a: brtrue IL_0030 |
|
|
|
IL_000f: ldc.i4.0 |
|
IL_0010: stloc.1 |
|
IL_0011: br IL_0024 |
|
|
|
IL_0016: ldstr "Y" |
|
IL_001b: call void [mscorlib]System.Console::WriteLine(string) |
|
IL_0020: ldloc.1 |
|
IL_0021: ldc.i4.1 |
|
IL_0022: add |
|
IL_0023: stloc.1 |
|
IL_0024: ldloc.1 |
|
IL_0025: ldc.i4.5 |
|
IL_0026: blt IL_0016 |
|
|
|
IL_002b: br IL_003a |
|
|
|
IL_0030: ldstr "X" |
|
IL_0035: call void [mscorlib]System.Console::WriteLine(string) |
|
IL_003a: ldloc.0 |
|
IL_003b: ldc.i4.1 |
|
IL_003c: add |
|
IL_003d: stloc.0 |
|
IL_003e: ldloc.0 |
|
IL_003f: ldc.i4.s 10 |
|
IL_0041: blt IL_0007 |
|
|
|
IL_0046: ret |
|
} // end of method Loops::NestedLoops |
|
|
|
.method private hidebysig instance bool |
|
Condition(string arg) cil managed |
|
{ |
|
// Code size 18 (0x12) |
|
.maxstack 8 |
|
IL_0000: ldstr "Condition: " |
|
IL_0005: ldarg.1 |
|
IL_0006: call string [mscorlib]System.String::Concat(string, |
|
string) |
|
IL_000b: call void [mscorlib]System.Console::WriteLine(string) |
|
IL_0010: ldc.i4.0 |
|
IL_0011: ret |
|
} // end of method Loops::Condition |
|
|
|
.method public hidebysig instance void |
|
WhileLoop() cil managed |
|
{ |
|
// Code size 146 (0x92) |
|
.maxstack 16 |
|
IL_0000: ldstr "Initial" |
|
IL_0005: call void [mscorlib]System.Console::WriteLine(string) |
|
IL_000a: ldarg.0 |
|
IL_000b: ldstr "if" |
|
IL_0010: call instance bool ICSharpCode.Decompiler.Tests.TestCases.Pretty.Loops::Condition(string) |
|
IL_0015: brfalse IL_0087 |
|
|
|
IL_001a: br IL_006d |
|
|
|
IL_001f: ldstr "Loop Body" |
|
IL_0024: call void [mscorlib]System.Console::WriteLine(string) |
|
IL_0029: ldarg.0 |
|
IL_002a: ldstr "test" |
|
IL_002f: call instance bool ICSharpCode.Decompiler.Tests.TestCases.Pretty.Loops::Condition(string) |
|
IL_0034: brfalse IL_0063 |
|
|
|
IL_0039: ldarg.0 |
|
IL_003a: ldstr "continue" |
|
IL_003f: call instance bool ICSharpCode.Decompiler.Tests.TestCases.Pretty.Loops::Condition(string) |
|
IL_0044: brfalse IL_004e |
|
|
|
IL_0049: br IL_006d |
|
|
|
IL_004e: ldarg.0 |
|
IL_004f: ldstr "break" |
|
IL_0054: call instance bool ICSharpCode.Decompiler.Tests.TestCases.Pretty.Loops::Condition(string) |
|
IL_0059: brtrue IL_0063 |
|
|
|
IL_005e: br IL_007d |
|
|
|
IL_0063: ldstr "End of loop body" |
|
IL_0068: call void [mscorlib]System.Console::WriteLine(string) |
|
IL_006d: ldarg.0 |
|
IL_006e: ldstr "while" |
|
IL_0073: call instance bool ICSharpCode.Decompiler.Tests.TestCases.Pretty.Loops::Condition(string) |
|
IL_0078: brtrue IL_001f |
|
|
|
IL_007d: ldstr "After loop" |
|
IL_0082: call void [mscorlib]System.Console::WriteLine(string) |
|
IL_0087: ldstr "End of method" |
|
IL_008c: call void [mscorlib]System.Console::WriteLine(string) |
|
IL_0091: ret |
|
} // end of method Loops::WhileLoop |
|
|
|
.method public hidebysig instance void |
|
ForLoop() cil managed |
|
{ |
|
// Code size 152 (0x98) |
|
.maxstack 16 |
|
.locals init (int32 V_0) |
|
IL_0000: ldstr "Initial" |
|
IL_0005: call void [mscorlib]System.Console::WriteLine(string) |
|
IL_000a: ldarg.0 |
|
IL_000b: ldstr "if" |
|
IL_0010: call instance bool ICSharpCode.Decompiler.Tests.TestCases.Pretty.Loops::Condition(string) |
|
IL_0015: brfalse IL_008d |
|
|
|
IL_001a: ldc.i4.0 |
|
IL_001b: stloc.0 |
|
IL_001c: br IL_0073 |
|
|
|
IL_0021: ldstr "Loop Body" |
|
IL_0026: call void [mscorlib]System.Console::WriteLine(string) |
|
IL_002b: ldarg.0 |
|
IL_002c: ldstr "test" |
|
IL_0031: call instance bool ICSharpCode.Decompiler.Tests.TestCases.Pretty.Loops::Condition(string) |
|
IL_0036: brfalse IL_0065 |
|
|
|
IL_003b: ldarg.0 |
|
IL_003c: ldstr "continue" |
|
IL_0041: call instance bool ICSharpCode.Decompiler.Tests.TestCases.Pretty.Loops::Condition(string) |
|
IL_0046: brfalse IL_0050 |
|
|
|
IL_004b: br IL_006f |
|
|
|
IL_0050: ldarg.0 |
|
IL_0051: ldstr "not-break" |
|
IL_0056: call instance bool ICSharpCode.Decompiler.Tests.TestCases.Pretty.Loops::Condition(string) |
|
IL_005b: brtrue IL_0065 |
|
|
|
IL_0060: br IL_0083 |
|
|
|
IL_0065: ldstr "End of loop body" |
|
IL_006a: call void [mscorlib]System.Console::WriteLine(string) |
|
IL_006f: ldloc.0 |
|
IL_0070: ldc.i4.1 |
|
IL_0071: add |
|
IL_0072: stloc.0 |
|
IL_0073: ldarg.0 |
|
IL_0074: ldstr "for" |
|
IL_0079: call instance bool ICSharpCode.Decompiler.Tests.TestCases.Pretty.Loops::Condition(string) |
|
IL_007e: brtrue IL_0021 |
|
|
|
IL_0083: ldstr "After loop" |
|
IL_0088: call void [mscorlib]System.Console::WriteLine(string) |
|
IL_008d: ldstr "End of method" |
|
IL_0092: call void [mscorlib]System.Console::WriteLine(string) |
|
IL_0097: ret |
|
} // end of method Loops::ForLoop |
|
|
|
.method public hidebysig instance void |
|
ReturnFromDoWhileInTryFinally() cil managed |
|
{ |
|
// Code size 62 (0x3e) |
|
.maxstack 8 |
|
.try |
|
{ |
|
IL_0000: ldarg.0 |
|
IL_0001: ldstr "return" |
|
IL_0006: call instance bool ICSharpCode.Decompiler.Tests.TestCases.Pretty.Loops::Condition(string) |
|
IL_000b: brfalse IL_0015 |
|
|
|
IL_0010: leave IL_003d |
|
|
|
IL_0015: ldarg.0 |
|
IL_0016: ldstr "repeat" |
|
IL_001b: call instance bool ICSharpCode.Decompiler.Tests.TestCases.Pretty.Loops::Condition(string) |
|
IL_0020: brtrue IL_0000 |
|
|
|
IL_0025: call string[] [mscorlib]System.Environment::GetCommandLineArgs() |
|
IL_002a: pop |
|
IL_002b: leave IL_0037 |
|
|
|
} // end .try |
|
finally |
|
{ |
|
IL_0030: call string[] [mscorlib]System.Environment::GetCommandLineArgs() |
|
IL_0035: pop |
|
IL_0036: endfinally |
|
} // end handler |
|
IL_0037: call string[] [mscorlib]System.Environment::GetCommandLineArgs() |
|
IL_003c: pop |
|
IL_003d: ret |
|
} // end of method Loops::ReturnFromDoWhileInTryFinally |
|
|
|
.method public hidebysig instance void |
|
ForLoopWithEarlyReturn(int32[] ids) cil managed |
|
{ |
|
// Code size 45 (0x2d) |
|
.maxstack 5 |
|
.locals init (int32 V_0, |
|
class ICSharpCode.Decompiler.Tests.TestCases.Pretty.Loops/Item V_1) |
|
IL_0000: ldc.i4.0 |
|
IL_0001: stloc.0 |
|
IL_0002: br IL_0023 |
|
|
|
IL_0007: ldnull |
|
IL_0008: stloc.1 |
|
IL_0009: ldarg.0 |
|
IL_000a: ldarg.1 |
|
IL_000b: ldloc.0 |
|
IL_000c: ldelem.i4 |
|
IL_000d: ldloca.s V_1 |
|
IL_000f: call instance void ICSharpCode.Decompiler.Tests.TestCases.Pretty.Loops::TryGetItem(int32, |
|
class ICSharpCode.Decompiler.Tests.TestCases.Pretty.Loops/Item&) |
|
IL_0014: ldloc.1 |
|
IL_0015: brtrue IL_001f |
|
|
|
IL_001a: br IL_002c |
|
|
|
IL_001f: ldloc.0 |
|
IL_0020: ldc.i4.1 |
|
IL_0021: add |
|
IL_0022: stloc.0 |
|
IL_0023: ldloc.0 |
|
IL_0024: ldarg.1 |
|
IL_0025: ldlen |
|
IL_0026: conv.i4 |
|
IL_0027: blt IL_0007 |
|
|
|
IL_002c: ret |
|
} // end of method Loops::ForLoopWithEarlyReturn |
|
|
|
.method public hidebysig instance void |
|
ForeachLoopWithEarlyReturn(class [mscorlib]System.Collections.Generic.List`1<object> items) cil managed |
|
{ |
|
// Code size 70 (0x46) |
|
.maxstack 8 |
|
.locals init (object V_0, |
|
valuetype [mscorlib]System.Collections.Generic.List`1/Enumerator<object> V_1, |
|
object V_2) |
|
IL_0000: ldarg.1 |
|
IL_0001: callvirt instance valuetype [mscorlib]System.Collections.Generic.List`1/Enumerator<!0> class [mscorlib]System.Collections.Generic.List`1<object>::GetEnumerator() |
|
IL_0006: stloc.1 |
|
.try |
|
{ |
|
IL_0007: br IL_0028 |
|
|
|
IL_000c: ldloca.s V_1 |
|
IL_000e: call instance !0 valuetype [mscorlib]System.Collections.Generic.List`1/Enumerator<object>::get_Current() |
|
IL_0013: stloc.0 |
|
IL_0014: ldarg.0 |
|
IL_0015: ldloc.0 |
|
IL_0016: dup |
|
IL_0017: stloc.2 |
|
IL_0018: stfld object ICSharpCode.Decompiler.Tests.TestCases.Pretty.Loops::someObject |
|
IL_001d: ldloc.2 |
|
IL_001e: brtrue IL_0028 |
|
|
|
IL_0023: br IL_0034 |
|
|
|
IL_0028: ldloca.s V_1 |
|
IL_002a: call instance bool valuetype [mscorlib]System.Collections.Generic.List`1/Enumerator<object>::MoveNext() |
|
IL_002f: brtrue IL_000c |
|
|
|
IL_0034: leave IL_0045 |
|
|
|
} // end .try |
|
finally |
|
{ |
|
IL_0039: ldloc.1 |
|
IL_003a: box valuetype [mscorlib]System.Collections.Generic.List`1/Enumerator<object> |
|
IL_003f: callvirt instance void [mscorlib]System.IDisposable::Dispose() |
|
IL_0044: endfinally |
|
} // end handler |
|
IL_0045: ret |
|
} // end of method Loops::ForeachLoopWithEarlyReturn |
|
|
|
} // end of class ICSharpCode.Decompiler.Tests.TestCases.Pretty.Loops |
|
|
|
|
|
// ============================================================= |
|
|
|
// *********** DISASSEMBLY COMPLETE *********************** |
|
// WARNING: Created Win32 resource file C:\Users\Siegfried\Projects\ILSpy master\ICSharpCode.Decompiler.Tests\bin\Debug\net46\../../../TestCases/Pretty\Loops.opt.mcs.res
|
|
|