官术网_书友最值得收藏!

Discussing code

We have gone through the console application and discussed what a typical console application contains and how we can set various things using Visual Studio. Now let's discuss our code, which was written in the previous section, Understanding a typical C# program.

Console is a static class of a System namespace and it can't be inherited.

In the said code, we instructed the program to write something to the console as an output with the help of the WriteLine() method.

The official definition of Console class is as follows (https://docs.microsoft.com/en-us/dotnet/api/system.console?view=netcore-2.0):

Represents the standard input, output, and error streams for console applications. This class cannot be inherited.

Console is nothing but an operating system's terminal-windows (also known as Console User Interface (CUI))to interact with users. Windows operating system has console, that is, Command Prompt that accepts MS-DOS commands. In this way, the Console class provides basic support to achieve this.

Here are a few important operations we can do with the console.

主站蜘蛛池模板: 岳阳县| 禄丰县| 吉木萨尔县| 德保县| 怀集县| 衡阳市| 南通市| 邯郸县| 石泉县| 广德县| 秦安县| 东阿县| 卓尼县| 甘南县| 桂阳县| 平阳县| 祥云县| 务川| 临泉县| 汉川市| 神木县| 任丘市| 沂源县| 麻栗坡县| 新闻| 齐齐哈尔市| 策勒县| 安国市| 惠安县| 姚安县| 崇左市| 安达市| 舒城县| 洮南市| 东台市| 和林格尔县| 昆山市| 年辖:市辖区| 镇巴县| 新乡县| 晋城|