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

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.

主站蜘蛛池模板: 三台县| 张家口市| 潼南县| 武城县| 北宁市| 谷城县| 澎湖县| 新宁县| 德钦县| 陵川县| 灵武市| 韶山市| 安西县| 辛集市| 贡觉县| 石河子市| 合作市| 涞源县| 延边| 长葛市| 大石桥市| 句容市| 汉阴县| 霍林郭勒市| 桦南县| 扶风县| 淮北市| 信阳市| 都兰县| 同江市| 乾安县| 宁河县| 湟中县| 崇文区| 碌曲县| 手游| 葵青区| 工布江达县| 孟连| 富宁县| 伊川县|