Click or drag to resize
ConsoleWriteLine Method (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.

Namespace: System
Assembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
public static void WriteLine(
	string format,
	Object arg0
)

Parameters

format
Type: SystemString
A composite format string (see Remarks).
arg0
Type: SystemObject
An object to write using format.
Exceptions
ExceptionCondition
IOExceptionAn I/O error occurred.
ArgumentNullExceptionformat is null.
FormatExceptionThe format specification in format is invalid.
See Also