Running It

The result of the compilation is an executable called hello.exe, meaning we can run it immediately as a Windows application (see Figure 3.10). This is different from platforms like Java where a separate application is required to run the compiled code.

Figure 3.10. Our program in action.

image

That wasn’t too hard, was it? To satisfy our technical curiosity, let’s take a look at the produced assembly.

Get C# 4.0 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.