Table of Contents

DelegatingTextWriter.WriteLine Method

Definition

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

WriteLine()

Writes a line terminator to the text stream.

public override void WriteLine()

Exceptions

ObjectDisposedException

The TextWriter is closed.

IOException

An I/O error occurs.

WriteLine(string?)

Writes a string to the text stream, followed by a line terminator.

public override void WriteLine(string? value)

Parameters

value string

The string to write. If value is null, only the line terminator is written.

Exceptions

ObjectDisposedException

The TextWriter is closed.

IOException

An I/O error occurs.

WriteLine(char)

Writes a character to the text stream, followed by a line terminator.

public override void WriteLine(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.

WriteLine(char[], int, int)

Writes a subarray of characters to the text stream, followed by a line terminator.

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

Parameters

buffer char[]

The character array from which data is read.

index int

The character position in buffer at which to start reading data.

count int

The maximum 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.

WriteLine(object?)

Writes the text representation of an object to the text stream, by calling the ToString method on that object, followed by a line terminator.

public override void WriteLine(object? value)

Parameters

value object

The object to write. If value is null, only the line terminator is written.

Exceptions

ObjectDisposedException

The TextWriter is closed.

IOException

An I/O error occurs.