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
valuecharThe 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
valuestringThe 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
bufferchar[]The character array to write data from.
indexintThe character position in the buffer at which to start retrieving data.
countintThe 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.
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
valueobjectThe object to write.
Exceptions
- ObjectDisposedException
The TextWriter is closed.
- IOException
An I/O error occurs.