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
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
valuecharThe 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
bufferchar[]The character array from which data is read.
indexintThe character position in
bufferat which to start reading data.countintThe maximum number of characters to write.
Exceptions
- ArgumentException
The buffer length minus
indexis less thancount.- ArgumentNullException
The
bufferparameter is null.- ArgumentOutOfRangeException
indexorcountis 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
Exceptions
- ObjectDisposedException
The TextWriter is closed.
- IOException
An I/O error occurs.