Mono Class Library: System.Console Overview | Members

System.Console.Write Method

Writes a subarray of characters to the Console.OutSystem.IO.TextWriter .

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

Parameters

buffer
The Unicode character array from which characters are read.
index
A int that specifies the starting offset in 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.Write(string, object) is equivalent to Console.Out.Write( buffer, index, count ).

Requirements

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