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.
126 lines
4.7 KiB
126 lines
4.7 KiB
|
|
|
|
|
|
|
|
// Metadata version: v4.0.30319 |
|
.assembly extern mscorlib |
|
{ |
|
.publickeytoken = (B7 7A 5C 56 19 34 E0 89 ) // .z\V.4.. |
|
.ver 4:0:0:0 |
|
} |
|
.assembly tmpAA15 |
|
{ |
|
.custom instance void [mscorlib]System.Runtime.CompilerServices.CompilationRelaxationsAttribute::.ctor(int32) = ( 01 00 08 00 00 00 00 00 ) |
|
.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. |
|
|
|
// --- The following custom attribute is added automatically, do not uncomment ------- |
|
// .custom instance void [mscorlib]System.Diagnostics.DebuggableAttribute::.ctor(valuetype [mscorlib]System.Diagnostics.DebuggableAttribute/DebuggingModes) = ( 01 00 02 00 00 00 00 00 ) |
|
|
|
.permissionset reqmin |
|
= {[mscorlib]System.Security.Permissions.SecurityPermissionAttribute = {property bool 'SkipVerification' = bool(true)}} |
|
.hash algorithm 0x00008004 |
|
.ver 0:0:0:0 |
|
} |
|
.module tmpAA15.tmp |
|
.custom instance void [mscorlib]System.Security.UnverifiableCodeAttribute::.ctor() = ( 01 00 00 00 ) |
|
.imagebase 0x10000000 |
|
.file alignment 0x00000200 |
|
.stackreserve 0x00100000 |
|
.subsystem 0x0003 // WINDOWS_CUI |
|
.corflags 0x00000001 // ILONLY |
|
|
|
|
|
// =============== CLASS MEMBERS DECLARATION =================== |
|
|
|
.class private auto ansi beforefieldinit ICSharpCode.Decompiler.Tests.TestCases.Ugly.NoForEachStatement |
|
extends [mscorlib]System.Object |
|
{ |
|
.method public hidebysig static void SimpleNonGenericForeach(class [mscorlib]System.Collections.IEnumerable enumerable) cil managed |
|
{ |
|
// Code size 48 (0x30) |
|
.maxstack 1 |
|
.locals init (class [mscorlib]System.Collections.IEnumerator V_0, |
|
class [mscorlib]System.IDisposable V_1) |
|
IL_0000: ldarg.0 |
|
IL_0001: callvirt instance class [mscorlib]System.Collections.IEnumerator [mscorlib]System.Collections.IEnumerable::GetEnumerator() |
|
IL_0006: stloc.0 |
|
.try |
|
{ |
|
IL_0007: br.s IL_0014 |
|
|
|
IL_0009: ldloc.0 |
|
IL_000a: callvirt instance object [mscorlib]System.Collections.IEnumerator::get_Current() |
|
IL_000f: call void [mscorlib]System.Console::WriteLine(object) |
|
IL_0014: ldloc.0 |
|
IL_0015: callvirt instance bool [mscorlib]System.Collections.IEnumerator::MoveNext() |
|
IL_001a: brtrue.s IL_0009 |
|
|
|
IL_001c: leave.s IL_002f |
|
|
|
} // end .try |
|
finally |
|
{ |
|
IL_001e: ldloc.0 |
|
IL_001f: isinst [mscorlib]System.IDisposable |
|
IL_0024: stloc.1 |
|
IL_0025: ldloc.1 |
|
IL_0026: brfalse.s IL_002e |
|
|
|
IL_0028: ldloc.1 |
|
IL_0029: callvirt instance void [mscorlib]System.IDisposable::Dispose() |
|
IL_002e: endfinally |
|
} // end handler |
|
IL_002f: ret |
|
} // end of method NoForEachStatement::SimpleNonGenericForeach |
|
|
|
.method public hidebysig static void SimpleForeachOverInts(class [mscorlib]System.Collections.Generic.IEnumerable`1<int32> enumerable) cil managed |
|
{ |
|
// Code size 41 (0x29) |
|
.maxstack 1 |
|
.locals init (class [mscorlib]System.Collections.Generic.IEnumerator`1<int32> V_0) |
|
IL_0000: ldarg.0 |
|
IL_0001: callvirt instance class [mscorlib]System.Collections.Generic.IEnumerator`1<!0> class [mscorlib]System.Collections.Generic.IEnumerable`1<int32>::GetEnumerator() |
|
IL_0006: stloc.0 |
|
.try |
|
{ |
|
IL_0007: br.s IL_0014 |
|
|
|
IL_0009: ldloc.0 |
|
IL_000a: callvirt instance !0 class [mscorlib]System.Collections.Generic.IEnumerator`1<int32>::get_Current() |
|
IL_000f: call void [mscorlib]System.Console::WriteLine(int32) |
|
IL_0014: ldloc.0 |
|
IL_0015: callvirt instance bool [mscorlib]System.Collections.IEnumerator::MoveNext() |
|
IL_001a: brtrue.s IL_0009 |
|
|
|
IL_001c: leave.s IL_0028 |
|
|
|
} // end .try |
|
finally |
|
{ |
|
IL_001e: ldloc.0 |
|
IL_001f: brfalse.s IL_0027 |
|
|
|
IL_0021: ldloc.0 |
|
IL_0022: callvirt instance void [mscorlib]System.IDisposable::Dispose() |
|
IL_0027: endfinally |
|
} // end handler |
|
IL_0028: ret |
|
} // end of method NoForEachStatement::SimpleForeachOverInts |
|
|
|
.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 NoForEachStatement::.ctor |
|
|
|
} // end of class ICSharpCode.Decompiler.Tests.TestCases.Ugly.NoForEachStatement |
|
|
|
|
|
// ============================================================= |
|
|
|
// *********** DISASSEMBLY COMPLETE ***********************
|
|
|