Mono Class Library: System.IO.TextWriter Overview | Members

System.IO.TextWriter.Write Method

Writes a subarray of characters to the text stream.

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

Parameters

buffer
The character array from which characters are read.
index
Starting index in the buffer.
count
The number of characters to write.

Exceptions

TypeReason
ArgumentNullExceptionbuffer is null.
ArgumentException(index + count ) > buffer.Length.
ArgumentOutOfRangeExceptionindex < 0 or count < 0.
System.IO.IOExceptionAn I/O error occurred.

Remarks

Note: This method does not search the specified array for individual newline characters (hexadecimal 0x000a) and replace them with TextWriter.NewLine.

Operation
As described above.

The default implementation uses the TextWriter.Write(char)(char[]) method.

Requirements

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