- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
What is the System.Console class and its methods in C#?
The System.Console class in C# represents the standard input, output, and error streams for console applications.
The following are some of the methods of the System.Console class −
Refer: MSDN System Class methods
Sr.No | Method & Description |
---|---|
1 | Beep() Plays the sound of a beep through the console speaker. |
2 | Beep(Int32,Int32) Plays the sound of a beep of a specified frequency and duration through the console speaker. |
3 | Clear() Clears the console buffer and corresponding console window of display information. |
4 | MoveBufferArea(Int32,Int32,Int32,Int32,Int32,Int32) Copies a specified source area of the screen buffer to a specified destination area. |
5 | MoveBufferArea(Int32,Int32,Int32,Int32,Int32,Int32, Char, ConsoleColor, ConsoleColor) Copies a specified source area of the screen buffer to a specified destination area. |
6 | OpenStandardError() Acquires the standard error stream. |
7 | OpenStandardError(Int32) Acquires the standard error stream, which is set to a specified buffer size. |
8 | OpenStandardInput() Acquires the standard input stream. |
9 | OpenStandardInput(Int32) Acquires the standard input stream, which is set to a specified buffer size. |
10 | OpenStandardOutput() Acquires the standard output stream. |
11 | OpenStandardOutput(Int32) Acquires the standard output stream, which is set to a specified buffer size. |
12 | Read() Reads the next character from the standard input stream. |
13 | ReadKey() Obtains the next character or function key pressed by the user. The pressed key is displayed in the console window. |
- Related Articles
- What is Regex class and its class methods in C#?
- What is the number wrapper class and its methods in Java?
- What is the character wrapper class and its methods in Java?
- What is the importance of the Throwable class and its methods in Java?
- What are the differences between class methods and class members in C#?
- What are the methods and properties of the Thread class in C#?
- What is difference between self and __init__ methods in python Class?
- Math class methods in C#
- What are the pricing methods and its types?
- What is the use of in flush() and close() methods of BufferedWriter class in Java?
- How are the methods and properties of Array class in C# useful?
- C++ string class and its applications?
- What are Class/Static methods in Java?
- What are some of the commonly used methods of the array class in C#?
- What is the difference between String.Copy() and String.Clone() methods in C#?

Advertisements