Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .namespace ns
- {
- .class private auto ansi beforefieldinit Program
- extends [mscorlib]System.Object
- {
- .method public hidebysig specialname rtspecialname instance void .ctor() cil managed
- {
- .maxstack 8
- L_0000: ldarg.0
- L_0001: call instance void [mscorlib]System.Object::.ctor()
- L_0006: ret
- }
- .method private hidebysig static void <Main>b__0(int32 n) cil managed
- {
- .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor()
- .maxstack 8
- L_0000: ldarg.0
- L_0001: ldc.i4.3
- L_0002: rem
- L_0003: brfalse.s L_001a
- L_0005: ldarg.0
- L_0006: ldc.i4.5
- L_0007: rem
- L_0008: brfalse.s L_0013
- L_000a: ldarga.s n
- L_000c: call instance string [mscorlib]System.Int32::ToString()
- L_0011: br.s L_002b
- L_0013: ldstr "cake"
- L_0018: br.s L_002b
- L_001a: ldarg.0
- L_001b: ldc.i4.5
- L_001c: rem
- L_001d: brfalse.s L_0026
- L_001f: ldstr "butt"
- L_0024: br.s L_002b
- L_0026: ldstr "buttcake"
- L_002b: call void [mscorlib]System.Console::WriteLine(string)
- L_0030: ret
- }
- .method private hidebysig static void Main() cil managed
- {
- .entrypoint
- .maxstack 8
- L_0000: ldc.i4.0
- L_0001: ldc.i4.s 100
- L_0003: call class [mscorlib]System.Collections.Generic.IEnumerable`1<int32> [System.Core]System.Linq.Enumerable::Range(int32, int32)
- L_0008: call class [mscorlib]System.Collections.Generic.List`1<!!0> [System.Core]System.Linq.Enumerable::ToList<int32>(class [mscorlib]System.Collections.Generic.IEnumerable`1<!!0>)
- L_000d: ldsfld class [mscorlib]System.Action`1<int32> ns.Program::CS$<>9__CachedAnonymousMethodDelegate1
- L_0012: brtrue.s L_0025
- L_0014: ldnull
- L_0015: ldftn void ns.Program::<Main>b__0(int32)
- L_001b: newobj instance void [mscorlib]System.Action`1<int32>::.ctor(object, native int)
- L_0020: stsfld class [mscorlib]System.Action`1<int32> ns.Program::CS$<>9__CachedAnonymousMethodDelegate1
- L_0025: ldsfld class [mscorlib]System.Action`1<int32> ns.Program::CS$<>9__CachedAnonymousMethodDelegate1
- L_002a: callvirt instance void [mscorlib]System.Collections.Generic.List`1<int32>::ForEach(class [mscorlib]System.Action`1<!0>)
- L_002f: ret
- }
- .field private static class [mscorlib]System.Action`1<int32> CS$<>9__CachedAnonymousMethodDelegate1
- {
- .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor()
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement