The System Console Class

Almost all of the example applications created over the course of the initial chapters of this text make extensive use of the System.Console class. While it is true that a console user interface (sometimes called a CUI) is not as enticing as a graphical user interface (GUI) or web-based front end, restricting the early examples to console programs will allow us to keep focused on the syntax of Visual Basic and the core aspects of the .NET platform, rather than dealing with the complexities of building GUIs.

As its name implies, the Console class encapsulates input, output, and error stream manipulations for console-based applications. Table 3-2 lists some (but definitely not all) of the members of interest.

Table 3-2. Select Members of System.Console

Member

Meaning in Life

Beep()

This method forces the console to emit a beep of a specified frequency and

Was this article helpful?

0 0

Post a comment