Mono Class Library: System.Console Overview | Members

System.Console.WriteLine Method

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

public static void WriteLine (char[] buffer, int index, int count)

Parameters

buffer
The Unicode character array from which data is read.
index
A int that specifies the index into buffer at which to begin reading.
count
A int that specifies the number of characters to write.

Exceptions

TypeReason
ArgumentException(index + count ) is greater than the length of buffer.
System.IO.IOExceptionAn I/O error occurred.
ArgumentOutOfRangeExceptionindex or count is negative.
ArgumentNullExceptionbuffer is null.

Remarks

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

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