1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

public class DotNetPad
{
    public static void Main(string[] args)
    {
        Console.WriteLine("Hello World!");
        FizzBuzz();
    }

    public static void FizzBuzz()
    {
        for (int i = 0; i <= 100; i++)
        {
            if (i % 3 != 0 && i % 5 != 0)
            {
                Console.WriteLine(i.ToString());
            }
            else
            {
                if (i % 3 == 0)
                {
                    Console.Write("Fizz");
                }
                if (i % 5 == 0)
                {
                    Console.Write("Fizz");
                }
                Console.WriteLine("");
            }
        }
    }
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
//  Microsoft (R) .NET Framework IL Disassembler.  Version 4.0.30319.1
//  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 Gobiner.CSharpPad.Eval.Evil1790469387
{
  .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.
  .hash algorithm 0x00008004
  .ver 0:0:0:0
}
.module Gobiner.CSharpPad.Eval.Evil1790469387.exe
// MVID: {990369A9-FE48-4706-A937-B8352BF54DBA}
.imagebase 0x00400000
.file alignment 0x00000200
.stackreserve 0x00100000
.subsystem 0x0003       // WINDOWS_CUI
.corflags 0x00000001    //  ILONLY
// Image base: 0x00000000001D0000


// =============== CLASS MEMBERS DECLARATION ===================

.class public auto ansi beforefieldinit DotNetPad
       extends [mscorlib]System.Object
{
  .method public hidebysig static void  Main(string[] args) cil managed
  {
    .entrypoint
    // 
    .maxstack  8
    IL_0000:  ldstr      "Hello World!"
    IL_0005:  call       void [mscorlib]System.Console::WriteLine(string)
    IL_000a:  call       void DotNetPad::FizzBuzz()
    IL_000f:  ret
  } // end of method DotNetPad::Main

  .method public hidebysig static void  FizzBuzz() cil managed
  {
    // 
    .maxstack  2
    .locals init (int32 V_0)
    IL_0000:  ldc.i4.0
    IL_0001:  stloc.0
    IL_0002:  br.s       IL_0048

    IL_0004:  ldloc.0
    IL_0005:  ldc.i4.3
    IL_0006:  rem
    IL_0007:  brfalse.s  IL_001c

    IL_0009:  ldloc.0
    IL_000a:  ldc.i4.5
    IL_000b:  rem
    IL_000c:  brfalse.s  IL_001c

    IL_000e:  ldloca.s   V_0
    IL_0010:  call       instance string [mscorlib]System.Int32::ToString()
    IL_0015:  call       void [mscorlib]System.Console::WriteLine(string)
    IL_001a:  br.s       IL_0044

    IL_001c:  ldloc.0
    IL_001d:  ldc.i4.3
    IL_001e:  rem
    IL_001f:  brtrue.s   IL_002b

    IL_0021:  ldstr      "Fizz"
    IL_0026:  call       void [mscorlib]System.Console::Write(string)
    IL_002b:  ldloc.0
    IL_002c:  ldc.i4.5
    IL_002d:  rem
    IL_002e:  brtrue.s   IL_003a

    IL_0030:  ldstr      "Fizz"
    IL_0035:  call       void [mscorlib]System.Console::Write(string)
    IL_003a:  ldstr      ""
    IL_003f:  call       void [mscorlib]System.Console::WriteLine(string)
    IL_0044:  ldloc.0
    IL_0045:  ldc.i4.1
    IL_0046:  add
    IL_0047:  stloc.0
    IL_0048:  ldloc.0
    IL_0049:  ldc.i4.s   100
    IL_004b:  ble.s      IL_0004

    IL_004d:  ret
  } // end of method DotNetPad::FizzBuzz

  .method public hidebysig specialname rtspecialname 
          instance void  .ctor() cil managed
  {
    // 
    .maxstack  8
    IL_0000:  ldarg.0
    IL_0001:  call       instance void [mscorlib]System.Object::.ctor()
    IL_0006:  ret
  } // end of method DotNetPad::.ctor

} // end of class DotNetPad


// =============================================================

// 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
Hello World!
FizzFizz
1
2
Fizz
4
Fizz
Fizz
7
8
Fizz
Fizz
11
Fizz
13
14
FizzFizz
16
17
Fizz
19
Fizz
Fizz
22
23
Fizz
Fizz
26
Fizz
28
29
FizzFizz
31
32
Fizz
34
Fizz
Fizz
37
38
Fizz
Fizz
41
Fizz
43
44
FizzFizz
46
47
Fizz
49
Fizz
Fizz
52
53
Fizz
Fizz
56
Fizz
58
59
FizzFizz
61
62
Fizz
64
Fizz
Fizz
67
68
Fizz
Fizz
71
Fizz
73
74
FizzFizz
76
77
Fizz
79
Fizz
Fizz
82
83
Fizz
Fizz
86
Fizz
88
89
FizzFizz
91
92
Fizz
94
Fizz
Fizz
97
98
Fizz
Fizz