Mono Class Library: System.Console Overview | Members

System.Console.WriteLine Method

Writes an array of characters followed by a line terminator to the Console.OutSystem.IO.TextWriter .

public static void WriteLine (char[] buffer)

Parameters

buffer
The Unicode character array to write.

Exceptions

TypeReason
System.IO.IOExceptionAn I/O error occurred.
ArgumentExceptionbuffer is null.

Remarks

This version of Console.WriteLine is equivalent to Console.Out.WriteLine( buffer ).

The default line terminator is the value of the Environment.NewLine property. The line terminator can be set using the System.IO.TextWriter.NewLine property of the Console.Out stream.

Requirements

Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0