O'Reilly logo

C# 5.0 Unleashed by Bart De Smet

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Running the Sample

Based on the example in Chapter 3, you should be able to write our trivial console application’s code in an editor of choice, compile it, and run it. To illustrate matters one more time, we go through the motions of compiling the application from the command line and show its use. Figure 4.2 shows the use of the little application we’ve written and compiled.

Image

FIGURE 4.2 Compiling and running the application.

After having written the code in Notepad, saving it to a file with a .cs extension (a convention, not a requirement), we called the C# command-line compiler csc.exe on it. Next, we invoked the resulting executable, passing ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required