1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

public class DotNetPad
{
    public static void Main(string[] args)
    {
        for(int i = 1;i <= 100;i++) {
            string test = "";
            test =+ (i % 3) == 0 ? "Fizz" : "";
            test =+ (i % 5) == 0 ? "Buzz" : "";
            if (i == 5) {
                Console.Write(+(i%5));
            }
            Console.Write(!String.IsNullOrEmpty(test) ? test : i + "\n");
        }
    }
}

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
115
116
117
//  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.Evil1874143698
{
  .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.Evil1874143698.exe
// MVID: {3C3D1CD5-9129-46A5-B856-7D07FD6D876C}
.imagebase 0x00400000
.file alignment 0x00000200
.stackreserve 0x00100000
.subsystem 0x0003       // WINDOWS_CUI
.corflags 0x00000001    //  ILONLY
// Image base: 0x00000000001F0000


// =============== 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  2
    .locals init (int32 V_0,
             string V_1)
    IL_0000:  ldc.i4.1
    IL_0001:  stloc.0
    IL_0002:  br.s       IL_005e

    IL_0004:  ldstr      ""
    IL_0009:  stloc.1
    IL_000a:  ldloc.0
    IL_000b:  ldc.i4.3
    IL_000c:  rem
    IL_000d:  brfalse.s  IL_0016

    IL_000f:  ldstr      ""
    IL_0014:  br.s       IL_001b

    IL_0016:  ldstr      "Fizz"
    IL_001b:  stloc.1
    IL_001c:  ldloc.0
    IL_001d:  ldc.i4.5
    IL_001e:  rem
    IL_001f:  brfalse.s  IL_0028

    IL_0021:  ldstr      ""
    IL_0026:  br.s       IL_002d

    IL_0028:  ldstr      "Buzz"
    IL_002d:  stloc.1
    IL_002e:  ldloc.0
    IL_002f:  ldc.i4.5
    IL_0030:  bne.un.s   IL_003a

    IL_0032:  ldloc.0
    IL_0033:  ldc.i4.5
    IL_0034:  rem
    IL_0035:  call       void [mscorlib]System.Console::Write(int32)
    IL_003a:  ldloc.1
    IL_003b:  call       bool [mscorlib]System.String::IsNullOrEmpty(string)
    IL_0040:  brfalse.s  IL_0054

    IL_0042:  ldloc.0
    IL_0043:  box        [mscorlib]System.Int32
    IL_0048:  ldstr      "\n"
    IL_004d:  call       string [mscorlib]System.String::Concat(object,
                                                                object)
    IL_0052:  br.s       IL_0055

    IL_0054:  ldloc.1
    IL_0055:  call       void [mscorlib]System.Console::Write(string)
    IL_005a:  ldloc.0
    IL_005b:  ldc.i4.1
    IL_005c:  add
    IL_005d:  stloc.0
    IL_005e:  ldloc.0
    IL_005f:  ldc.i4.s   100
    IL_0061:  ble.s      IL_0004

    IL_0063:  ret
  } // end of method DotNetPad::Main

  .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
1
2
3
4
0Buzz6
7
8
9
Buzz11
12
13
14
Buzz16
17
18
19
Buzz21
22
23
24
Buzz26
27
28
29
Buzz31
32
33
34
Buzz36
37
38
39
Buzz41
42
43
44
Buzz46
47
48
49
Buzz51
52
53
54
Buzz56
57
58
59
Buzz61
62
63
64
Buzz66
67
68
69
Buzz71
72
73
74
Buzz76
77
78
79
Buzz81
82
83
84
Buzz86
87
88
89
Buzz91
92
93
94
Buzz96
97
98
99
Buzz