Table of Contents

DelegatingTextWriter.Write Method

Definition

Namespace
DotMake.CommandLine.Util
Assembly
DotMake.CommandLine.dll

Write(char)

Writes a character to the text stream.

public override void Write(char value)

Parameters

value char

The character to write to the text stream.

Exceptions

ObjectDisposedException

The TextWriter is closed.

IOException

An I/O error occurs.

Write(string?)

Writes a string to the text stream.

public override void Write(string? value)

Parameters

value string

The string to write.

Exceptions

ObjectDisposedException

The TextWriter is closed.

IOException

An I/O error occurs.

Write(char[], int, int)

Writes a subarray of characters to the text stream.

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

Parameters

buffer char[]

The character array to write data from.

index int

The character position in the buffer at which to start retrieving data.

count int

The number of characters to write.

Exceptions

ArgumentException

The buffer length minus index is less than count.

ArgumentNullException

The buffer parameter is null.

ArgumentOutOfRangeException

index or count is negative.

ObjectDisposedException

The TextWriter is closed.

IOException

An I/O error occurs.

Write(object?)

Writes the text representation of an object to the text stream by calling the ToString method on that object.

public override void Write(object? value)

Parameters

value object

The object to write.

Exceptions

ObjectDisposedException

The TextWriter is closed.

IOException

An I/O error occurs.