Namespace: System
Console
Represents the standard input, output, and error streams for console applications. This class cannot be inherited.
Methods (6)
String ReadLine
Reads the next line of characters from the standard input stream.
Returns: The next line of characters from the input stream, or null if no more lines are available.
void Write(String)
Writes the specified string value to the standard output stream.
| Parameter | Description |
|---|---|
| value | The value to write. |
void Write(String,Object[])
Writes the text representation of the specified array of objects to the standard output stream using the specified format information.
| Parameter | Description |
|---|---|
| format | A composite format string. |
| arg | An array of objects to write using format. |
void WriteLine(String)
Writes the specified string value, followed by the current line terminator, to the standard output stream.
| Parameter | Description |
|---|---|
| value | The value to write. |
void WriteLine(String,Object[])
Writes the text representation of the specified array of objects, followed by the current line terminator, to the standard output stream using the specified format information.
| Parameter | Description |
|---|---|
| format | A composite format string. |
| arg | An array of objects to write using format. |
void WriteLine
Writes the current line terminator to the standard output stream.