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.
539 lines
17 KiB
539 lines
17 KiB
|
|
// Microsoft (R) .NET Framework IL Disassembler. Version 4.0.30319.17929 |
|
// Copyright (c) Microsoft Corporation. All rights reserved. |
|
|
|
|
|
|
|
// 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 sscw5l23 |
|
{ |
|
.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. |
|
.permissionset reqmin |
|
= {[mscorlib]System.Security.Permissions.SecurityPermissionAttribute = {property bool 'SkipVerification' = bool(true)}} |
|
.hash algorithm 0x00008004 |
|
.ver 0:0:0:0 |
|
} |
|
.module sscw5l23.dll |
|
// MVID: {991357DB-B65F-4BB1-8C96-4C4C12DBD249} |
|
.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 |
|
// Image base: 0x01540000 |
|
|
|
|
|
// =============== CLASS MEMBERS DECLARATION =================== |
|
|
|
.class public auto ansi beforefieldinit Loops |
|
extends [mscorlib]System.Object |
|
{ |
|
.method public hidebysig instance void |
|
ForEach(class [mscorlib]System.Collections.Generic.IEnumerable`1<string> enumerable) cil managed |
|
{ |
|
// Code size 44 (0x2c) |
|
.maxstack 1 |
|
.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.s IL_0017 |
|
|
|
IL_0009: ldloc.1 |
|
IL_000a: callvirt instance !0 class [mscorlib]System.Collections.Generic.IEnumerator`1<string>::get_Current() |
|
IL_000f: stloc.0 |
|
IL_0010: ldloc.0 |
|
IL_0011: callvirt instance string [mscorlib]System.String::ToLower() |
|
IL_0016: pop |
|
IL_0017: ldloc.1 |
|
IL_0018: callvirt instance bool [mscorlib]System.Collections.IEnumerator::MoveNext() |
|
IL_001d: brtrue.s IL_0009 |
|
|
|
IL_001f: leave.s IL_002b |
|
|
|
} // end .try |
|
finally |
|
{ |
|
IL_0021: ldloc.1 |
|
IL_0022: brfalse.s IL_002a |
|
|
|
IL_0024: ldloc.1 |
|
IL_0025: callvirt instance void [mscorlib]System.IDisposable::Dispose() |
|
IL_002a: endfinally |
|
} // end handler |
|
IL_002b: 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 50 (0x32) |
|
.maxstack 1 |
|
.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.s IL_0018 |
|
|
|
IL_0009: ldloca.s V_1 |
|
IL_000b: call instance !0 valuetype [mscorlib]System.Collections.Generic.List`1/Enumerator<string>::get_Current() |
|
IL_0010: stloc.0 |
|
IL_0011: ldloc.0 |
|
IL_0012: callvirt instance string [mscorlib]System.String::ToLower() |
|
IL_0017: pop |
|
IL_0018: ldloca.s V_1 |
|
IL_001a: call instance bool valuetype [mscorlib]System.Collections.Generic.List`1/Enumerator<string>::MoveNext() |
|
IL_001f: brtrue.s IL_0009 |
|
|
|
IL_0021: leave.s IL_0031 |
|
|
|
} // end .try |
|
finally |
|
{ |
|
IL_0023: ldloca.s V_1 |
|
IL_0025: constrained. valuetype [mscorlib]System.Collections.Generic.List`1/Enumerator<string> |
|
IL_002b: callvirt instance void [mscorlib]System.IDisposable::Dispose() |
|
IL_0030: endfinally |
|
} // end handler |
|
IL_0031: ret |
|
} // end of method Loops::ForEachOverList |
|
|
|
.method public hidebysig instance void |
|
ForEachOverNonGenericEnumerable(class [mscorlib]System.Collections.IEnumerable enumerable) cil managed |
|
{ |
|
// Code size 51 (0x33) |
|
.maxstack 1 |
|
.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.s IL_0017 |
|
|
|
IL_0009: ldloc.1 |
|
IL_000a: callvirt instance object [mscorlib]System.Collections.IEnumerator::get_Current() |
|
IL_000f: stloc.0 |
|
IL_0010: ldloc.0 |
|
IL_0011: callvirt instance string [mscorlib]System.Object::ToString() |
|
IL_0016: pop |
|
IL_0017: ldloc.1 |
|
IL_0018: callvirt instance bool [mscorlib]System.Collections.IEnumerator::MoveNext() |
|
IL_001d: brtrue.s IL_0009 |
|
|
|
IL_001f: leave.s IL_0032 |
|
|
|
} // end .try |
|
finally |
|
{ |
|
IL_0021: ldloc.1 |
|
IL_0022: isinst [mscorlib]System.IDisposable |
|
IL_0027: stloc.2 |
|
IL_0028: ldloc.2 |
|
IL_0029: brfalse.s IL_0031 |
|
|
|
IL_002b: ldloc.2 |
|
IL_002c: callvirt instance void [mscorlib]System.IDisposable::Dispose() |
|
IL_0031: endfinally |
|
} // end handler |
|
IL_0032: ret |
|
} // end of method Loops::ForEachOverNonGenericEnumerable |
|
|
|
.method public hidebysig instance void |
|
ForEachOverNonGenericEnumerableWithAutomaticCast(class [mscorlib]System.Collections.IEnumerable enumerable) cil managed |
|
{ |
|
// Code size 57 (0x39) |
|
.maxstack 1 |
|
.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.s IL_001d |
|
|
|
IL_0009: ldloc.1 |
|
IL_000a: callvirt instance object [mscorlib]System.Collections.IEnumerator::get_Current() |
|
IL_000f: unbox.any [mscorlib]System.Int32 |
|
IL_0014: stloc.0 |
|
IL_0015: ldloca.s V_0 |
|
IL_0017: call instance string [mscorlib]System.Int32::ToString() |
|
IL_001c: pop |
|
IL_001d: ldloc.1 |
|
IL_001e: callvirt instance bool [mscorlib]System.Collections.IEnumerator::MoveNext() |
|
IL_0023: brtrue.s IL_0009 |
|
|
|
IL_0025: leave.s IL_0038 |
|
|
|
} // end .try |
|
finally |
|
{ |
|
IL_0027: ldloc.1 |
|
IL_0028: isinst [mscorlib]System.IDisposable |
|
IL_002d: stloc.2 |
|
IL_002e: ldloc.2 |
|
IL_002f: brfalse.s IL_0037 |
|
|
|
IL_0031: ldloc.2 |
|
IL_0032: callvirt instance void [mscorlib]System.IDisposable::Dispose() |
|
IL_0037: endfinally |
|
} // end handler |
|
IL_0038: ret |
|
} // end of method Loops::ForEachOverNonGenericEnumerableWithAutomaticCast |
|
|
|
.method public hidebysig instance void |
|
ForOverArray(string[] 'array') cil managed |
|
{ |
|
// Code size 24 (0x18) |
|
.maxstack 2 |
|
.locals init (int32 V_0) |
|
IL_0000: ldc.i4.0 |
|
IL_0001: stloc.0 |
|
IL_0002: br.s IL_0011 |
|
|
|
IL_0004: ldarg.1 |
|
IL_0005: ldloc.0 |
|
IL_0006: ldelem.ref |
|
IL_0007: callvirt instance string [mscorlib]System.String::ToLower() |
|
IL_000c: pop |
|
IL_000d: ldloc.0 |
|
IL_000e: ldc.i4.1 |
|
IL_000f: add |
|
IL_0010: stloc.0 |
|
IL_0011: ldloc.0 |
|
IL_0012: ldarg.1 |
|
IL_0013: ldlen |
|
IL_0014: conv.i4 |
|
IL_0015: blt.s IL_0004 |
|
|
|
IL_0017: ret |
|
} // end of method Loops::ForOverArray |
|
|
|
.method public hidebysig instance void |
|
NestedLoops() cil managed |
|
{ |
|
// Code size 53 (0x35) |
|
.maxstack 2 |
|
.locals init (int32 V_0, |
|
int32 V_1) |
|
IL_0000: ldc.i4.0 |
|
IL_0001: stloc.0 |
|
IL_0002: br.s IL_002f |
|
|
|
IL_0004: ldloc.0 |
|
IL_0005: ldc.i4.2 |
|
IL_0006: rem |
|
IL_0007: brtrue.s IL_0021 |
|
|
|
IL_0009: ldc.i4.0 |
|
IL_000a: stloc.1 |
|
IL_000b: br.s IL_001b |
|
|
|
IL_000d: ldstr "Y" |
|
IL_0012: call void [mscorlib]System.Console::WriteLine(string) |
|
IL_0017: ldloc.1 |
|
IL_0018: ldc.i4.1 |
|
IL_0019: add |
|
IL_001a: stloc.1 |
|
IL_001b: ldloc.1 |
|
IL_001c: ldc.i4.5 |
|
IL_001d: blt.s IL_000d |
|
|
|
IL_001f: br.s IL_002b |
|
|
|
IL_0021: ldstr "X" |
|
IL_0026: call void [mscorlib]System.Console::WriteLine(string) |
|
IL_002b: ldloc.0 |
|
IL_002c: ldc.i4.1 |
|
IL_002d: add |
|
IL_002e: stloc.0 |
|
IL_002f: ldloc.0 |
|
IL_0030: ldc.i4.s 10 |
|
IL_0032: blt.s IL_0004 |
|
|
|
IL_0034: ret |
|
} // end of method Loops::NestedLoops |
|
|
|
.method public hidebysig instance int32 |
|
MultipleExits() cil managed |
|
{ |
|
// Code size 42 (0x2a) |
|
.maxstack 2 |
|
.locals init (int32 V_0) |
|
IL_0000: ldc.i4.0 |
|
IL_0001: stloc.0 |
|
IL_0002: ldloc.0 |
|
IL_0003: ldc.i4.4 |
|
IL_0004: rem |
|
IL_0005: brtrue.s IL_0009 |
|
|
|
IL_0007: ldc.i4.4 |
|
IL_0008: ret |
|
|
|
IL_0009: ldloc.0 |
|
IL_000a: ldc.i4.7 |
|
IL_000b: rem |
|
IL_000c: brfalse.s IL_0022 |
|
|
|
IL_000e: ldloc.0 |
|
IL_000f: ldc.i4.s 9 |
|
IL_0011: rem |
|
IL_0012: brtrue.s IL_0016 |
|
|
|
IL_0014: ldc.i4.5 |
|
IL_0015: ret |
|
|
|
IL_0016: ldloc.0 |
|
IL_0017: ldc.i4.s 11 |
|
IL_0019: rem |
|
IL_001a: brfalse.s IL_0022 |
|
|
|
IL_001c: ldloc.0 |
|
IL_001d: ldc.i4.1 |
|
IL_001e: add |
|
IL_001f: stloc.0 |
|
IL_0020: br.s IL_0002 |
|
|
|
IL_0022: ldc.i4 0x80000000 |
|
IL_0027: stloc.0 |
|
IL_0028: ldloc.0 |
|
IL_0029: ret |
|
} // end of method Loops::MultipleExits |
|
|
|
.method public hidebysig instance int32 |
|
InterestingLoop() cil managed |
|
{ |
|
// Code size 62 (0x3e) |
|
.maxstack 2 |
|
.locals init (int32 V_0) |
|
IL_0000: ldc.i4.0 |
|
IL_0001: stloc.0 |
|
IL_0002: ldloc.0 |
|
IL_0003: ldc.i4.s 11 |
|
IL_0005: rem |
|
IL_0006: brtrue.s IL_003c |
|
|
|
IL_0008: ldloc.0 |
|
IL_0009: ldc.i4.4 |
|
IL_000a: rem |
|
IL_000b: brtrue.s IL_0030 |
|
|
|
IL_000d: ldloc.0 |
|
IL_000e: ldc.i4.7 |
|
IL_000f: rem |
|
IL_0010: brtrue.s IL_0024 |
|
|
|
IL_0012: ldloc.0 |
|
IL_0013: ldc.i4.s 11 |
|
IL_0015: rem |
|
IL_0016: brfalse.s IL_0008 |
|
|
|
IL_0018: ldstr "7" |
|
IL_001d: call void [mscorlib]System.Console::WriteLine(string) |
|
IL_0022: br.s IL_0036 |
|
|
|
IL_0024: ldstr "!7" |
|
IL_0029: call void [mscorlib]System.Console::WriteLine(string) |
|
IL_002e: br.s IL_0036 |
|
|
|
IL_0030: ldloc.0 |
|
IL_0031: ldc.i4.1 |
|
IL_0032: add |
|
IL_0033: stloc.0 |
|
IL_0034: br.s IL_0008 |
|
|
|
IL_0036: ldc.i4 0x80000000 |
|
IL_003b: stloc.0 |
|
IL_003c: ldloc.0 |
|
IL_003d: ret |
|
} // end of method Loops::InterestingLoop |
|
|
|
.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 118 (0x76) |
|
.maxstack 2 |
|
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 Loops::Condition(string) |
|
IL_0015: brfalse.s IL_006b |
|
|
|
IL_0017: br.s IL_0054 |
|
|
|
IL_0019: ldstr "Loop Body" |
|
IL_001e: call void [mscorlib]System.Console::WriteLine(string) |
|
IL_0023: ldarg.0 |
|
IL_0024: ldstr "test" |
|
IL_0029: call instance bool Loops::Condition(string) |
|
IL_002e: brfalse.s IL_004a |
|
|
|
IL_0030: ldarg.0 |
|
IL_0031: ldstr "continue" |
|
IL_0036: call instance bool Loops::Condition(string) |
|
IL_003b: brtrue.s IL_0054 |
|
|
|
IL_003d: ldarg.0 |
|
IL_003e: ldstr "break" |
|
IL_0043: call instance bool Loops::Condition(string) |
|
IL_0048: brfalse.s IL_0061 |
|
|
|
IL_004a: ldstr "End of loop body" |
|
IL_004f: call void [mscorlib]System.Console::WriteLine(string) |
|
IL_0054: ldarg.0 |
|
IL_0055: ldstr "while" |
|
IL_005a: call instance bool Loops::Condition(string) |
|
IL_005f: brtrue.s IL_0019 |
|
|
|
IL_0061: ldstr "After loop" |
|
IL_0066: call void [mscorlib]System.Console::WriteLine(string) |
|
IL_006b: ldstr "End of method" |
|
IL_0070: call void [mscorlib]System.Console::WriteLine(string) |
|
IL_0075: ret |
|
} // end of method Loops::WhileLoop |
|
|
|
.method public hidebysig instance void |
|
DoWhileLoop() cil managed |
|
{ |
|
// Code size 116 (0x74) |
|
.maxstack 2 |
|
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 Loops::Condition(string) |
|
IL_0015: brfalse.s IL_0069 |
|
|
|
IL_0017: ldstr "Loop Body" |
|
IL_001c: call void [mscorlib]System.Console::WriteLine(string) |
|
IL_0021: ldarg.0 |
|
IL_0022: ldstr "test" |
|
IL_0027: call instance bool Loops::Condition(string) |
|
IL_002c: brfalse.s IL_0048 |
|
|
|
IL_002e: ldarg.0 |
|
IL_002f: ldstr "continue" |
|
IL_0034: call instance bool Loops::Condition(string) |
|
IL_0039: brtrue.s IL_0052 |
|
|
|
IL_003b: ldarg.0 |
|
IL_003c: ldstr "break" |
|
IL_0041: call instance bool Loops::Condition(string) |
|
IL_0046: brfalse.s IL_005f |
|
|
|
IL_0048: ldstr "End of loop body" |
|
IL_004d: call void [mscorlib]System.Console::WriteLine(string) |
|
IL_0052: ldarg.0 |
|
IL_0053: ldstr "while" |
|
IL_0058: call instance bool Loops::Condition(string) |
|
IL_005d: brtrue.s IL_0017 |
|
|
|
IL_005f: ldstr "After loop" |
|
IL_0064: call void [mscorlib]System.Console::WriteLine(string) |
|
IL_0069: ldstr "End of method" |
|
IL_006e: call void [mscorlib]System.Console::WriteLine(string) |
|
IL_0073: ret |
|
} // end of method Loops::DoWhileLoop |
|
|
|
.method public hidebysig instance void |
|
ForLoop() cil managed |
|
{ |
|
// Code size 124 (0x7c) |
|
.maxstack 2 |
|
.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 Loops::Condition(string) |
|
IL_0015: brfalse.s IL_0071 |
|
|
|
IL_0017: ldc.i4.0 |
|
IL_0018: stloc.0 |
|
IL_0019: br.s IL_005a |
|
|
|
IL_001b: ldstr "Loop Body" |
|
IL_0020: call void [mscorlib]System.Console::WriteLine(string) |
|
IL_0025: ldarg.0 |
|
IL_0026: ldstr "test" |
|
IL_002b: call instance bool Loops::Condition(string) |
|
IL_0030: brfalse.s IL_004c |
|
|
|
IL_0032: ldarg.0 |
|
IL_0033: ldstr "continue" |
|
IL_0038: call instance bool Loops::Condition(string) |
|
IL_003d: brtrue.s IL_0056 |
|
|
|
IL_003f: ldarg.0 |
|
IL_0040: ldstr "break" |
|
IL_0045: call instance bool Loops::Condition(string) |
|
IL_004a: brfalse.s IL_0067 |
|
|
|
IL_004c: ldstr "End of loop body" |
|
IL_0051: call void [mscorlib]System.Console::WriteLine(string) |
|
IL_0056: ldloc.0 |
|
IL_0057: ldc.i4.1 |
|
IL_0058: add |
|
IL_0059: stloc.0 |
|
IL_005a: ldarg.0 |
|
IL_005b: ldstr "for" |
|
IL_0060: call instance bool Loops::Condition(string) |
|
IL_0065: brtrue.s IL_001b |
|
|
|
IL_0067: ldstr "After loop" |
|
IL_006c: call void [mscorlib]System.Console::WriteLine(string) |
|
IL_0071: ldstr "End of method" |
|
IL_0076: call void [mscorlib]System.Console::WriteLine(string) |
|
IL_007b: ret |
|
} // end of method Loops::ForLoop |
|
|
|
.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 |
|
|
|
} // end of class Loops |
|
|
|
|
|
// ============================================================= |
|
|
|
// *********** DISASSEMBLY COMPLETE *********************** |
|
// WARNING: Created Win32 resource file ../../Tests/TestCases/Pretty\Loops.opt.res
|
|
|