Click or drag to resize
Console Class
Represents the standard input, output, and error streams for console applications. This class cannot be inherited.
Inheritance Hierarchy
SystemObject
  SystemConsole

Namespace: System
Assembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
public static class Console

The Console type exposes the following members.

Methods
  NameDescription
Public methodStatic memberWrite(Boolean)
Writes the text representation of the specified Boolean value to the standard output stream.
Public methodStatic memberWrite(Char)
Writes the specified Unicode character value to the standard output stream.
Public methodStatic memberWrite(Char)
Writes the specified array of Unicode characters to the standard output stream.
Public methodStatic memberWrite(Decimal)
Writes the text representation of the specified Decimal value to the standard output stream.
Public methodStatic memberWrite(Double)
Writes the text representation of the specified double-precision floating-point value to the standard output stream.
Public methodStatic memberWrite(Int32)
Writes the text representation of the specified 32-bit signed integer value to the standard output stream.
Public methodStatic memberWrite(Int64)
Writes the text representation of the specified 64-bit signed integer value to the standard output stream.
Public methodStatic memberWrite(Object)
Writes the text representation of the specified object to the standard output stream.
Public methodStatic memberWrite(Single)
Writes the text representation of the specified single-precision floating-point value to the standard output stream.
Public methodStatic memberWrite(String)
Writes the specified string value to the standard output stream.
Public methodStatic memberWrite(UInt32)
Writes the text representation of the specified 32-bit unsigned integer value to the standard output stream.
Public methodStatic memberWrite(UInt64)
Writes the text representation of the specified 64-bit unsigned integer value to the standard output stream.
Public methodStatic memberWrite(String, Object)
Writes the text representation of the specified object to the standard output stream using the specified format information.
Public methodStatic memberWrite(String, Object)
Writes the text representation of the specified array of objects to the standard output stream using the specified format information.
Public methodStatic memberWrite(Char, Int32, Int32)
Writes the specified subarray of Unicode characters to the standard output stream.
Public methodStatic memberWrite(String, Object, Object)
Writes the text representation of the specified objects to the standard output stream using the specified format information.
Public methodStatic memberWrite(String, Object, Object, Object)
Writes the text representation of the specified objects to the standard output stream using the specified format information.
Public methodStatic memberWrite(String, Object, Object, Object, Object)
Writes the text representation of the specified objects and variable-length parameter list to the standard output stream using the specified format information.
Public methodStatic memberWriteLine
Writes the current line terminator to the standard output stream.
Public methodStatic memberWriteLine(Boolean)
Writes the text representation of the specified Boolean value, followed by the current line terminator, to the standard output stream.
Public methodStatic memberWriteLine(Char)
Writes the specified Unicode character, followed by the current line terminator, value to the standard output stream.
Public methodStatic memberWriteLine(Char)
Writes the specified array of Unicode characters, followed by the current line terminator, to the standard output stream.
Public methodStatic memberWriteLine(Decimal)
Writes the text representation of the specified Decimal value, followed by the current line terminator, to the standard output stream.
Public methodStatic memberWriteLine(Double)
Writes the text representation of the specified double-precision floating-point value, followed by the current line terminator, to the standard output stream.
Public methodStatic memberWriteLine(Int32)
Writes the text representation of the specified 32-bit signed integer value, followed by the current line terminator, to the standard output stream.
Public methodStatic memberWriteLine(Int64)
Writes the text representation of the specified 64-bit signed integer value, followed by the current line terminator, to the standard output stream.
Public methodStatic memberWriteLine(Object)
Writes the text representation of the specified object, followed by the current line terminator, to the standard output stream.
Public methodStatic memberWriteLine(Single)
Writes the text representation of the specified single-precision floating-point value, followed by the current line terminator, to the standard output stream.
Public methodStatic memberWriteLine(String)
Writes the specified string value, followed by the current line terminator, to the standard output stream.
Public methodStatic memberWriteLine(UInt32)
Writes the text representation of the specified 32-bit unsigned integer value, followed by the current line terminator, to the standard output stream.
Public methodStatic memberWriteLine(UInt64)
Writes the text representation of the specified 64-bit unsigned integer value, followed by the current line terminator, to the standard output stream.
Public methodStatic memberWriteLine(String, Object)
Writes the text representation of the specified object, followed by the current line terminator, to the standard output stream using the specified format information.
Public methodStatic memberWriteLine(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.
Public methodStatic memberWriteLine(Char, Int32, Int32)
Writes the specified subarray of Unicode characters, followed by the current line terminator, to the standard output stream.
Public methodStatic memberWriteLine(String, Object, Object)
Writes the text representation of the specified objects, followed by the current line terminator, to the standard output stream using the specified format information.
Public methodStatic memberWriteLine(String, Object, Object, Object)
Writes the text representation of the specified objects, followed by the current line terminator, to the standard output stream using the specified format information.
Public methodStatic memberWriteLine(String, Object, Object, Object, Object)
Writes the text representation of the specified objects and variable-length parameter list, followed by the current line terminator, to the standard output stream using the specified format information.
Top
Events
  NameDescription
Public eventStatic memberCancelKeyPress
Occurs when the Control modifier key (CTRL) and C console key (C) are pressed simultaneously (CTRL+C).
Top
See Also