System.IO.TextWriter Members

The members of System.IO.TextWriter are listed below.

See Also: Inherited members from System.MarshalByRefObject

Protected Constructors

Initializes a new instance of the System.IO.TextWriter class.

Initializes a new instance of the System.IO.TextWriter class with the specified format provider.

Public Fields

static readonly
NullTextWriter.

Provides a TextWriter with no backing store that can be written to, but not read from.

Protected Fields

CoreNewLinechar[].

Stores the newline characters used for this TextWriter.

Public Properties

[read-only]
abstract
EncodingSystem.Text.Encoding.

When overridden in a derived class, returns the character encoding in which the output is written.

[read-only]
FormatProviderIFormatProvider.

Gets an object that controls formatting.

NewLinestring.

Gets or sets the line terminator string used by the current TextWriter.

Public Methods

Close()

Closes the current writer and releases any system resources associated with the writer.

Dispose()

Releases all resources used by the System.IO.TextWriter object.

Flush()

Clears all buffers for the current writer and causes any buffered data to be written to the underlying device.

FlushAsync() : System.Threading.Tasks.Task

Asynchronously clears all buffers for the current writer and causes any buffered data to be written to the underlying device.

static
Synchronized(TextWriter) : TextWriter

Creates a thread-safe wrapper around the specified TextWriter.

Write(bool)

Writes the text representation of a Boolean value to the text string or stream.

Write(char)

Writes a character to the text string or stream.

Write(char[])

Writes a character array to the text string or stream.

Write(decimal)

Writes the text representation of a decimal value to the text string or stream.

Write(double)

Writes the text representation of an 8-byte floating-point value to the text string or stream.

Write(int)

Writes the text representation of a 4-byte signed integer to the text string or stream.

Write(long)

Writes the text representation of an 8-byte signed integer to the text string or stream.

Write(object)

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

Write(float)

Writes the text representation of a 4-byte floating-point value to the text string or stream.

Write(string)

Writes a string to the text string or stream.

Write(uint)

Writes the text representation of a 4-byte unsigned integer to the text string or stream.

Write(ulong)

Writes the text representation of an 8-byte unsigned integer to the text string or stream.

Write(string, object)

Writes a formatted string to the text string or stream, using the same semantics as the string.Format(string, object) method.

Write(string, params object[])

Writes a formatted string to the text string or stream, using the same semantics as the string.Format(string, Object[]) method.

Write(char[], int, int)

Writes a subarray of characters to the text string or stream.

Write(string, object, object)

Writes a formatted string to the text string or stream, using the same semantics as the string.Format(string, object, object) method.

Write(string, object, object, object)

Writes a formatted string to the text string or stream, using the same semantics as the string.Format(string, object, object, object) method.

WriteAsync(char) : System.Threading.Tasks.Task

Writes a character to the text string or stream asynchronously.

WriteAsync(char[]) : System.Threading.Tasks.Task

Writes a character array to the text string or stream asynchronously.

WriteAsync(string) : System.Threading.Tasks.Task

Writes a string to the text string or stream asynchronously.

WriteAsync(char[], int, int) : System.Threading.Tasks.Task

Writes a subarray of characters to the text string or stream asynchronously.

WriteLine()

Writes a line terminator to the text string or stream.

WriteLine(bool)

Writes the text representation of a Boolean value followed by a line terminator to the text string or stream.

WriteLine(char)

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

WriteLine(char[])

Writes an array of characters followed by a line terminator to the text string or stream.

WriteLine(decimal)

Writes the text representation of a decimal value followed by a line terminator to the text string or stream.

WriteLine(double)

Writes the text representation of a 8-byte floating-point value followed by a line terminator to the text string or stream.

WriteLine(int)

Writes the text representation of a 4-byte signed integer followed by a line terminator to the text string or stream.

WriteLine(long)

Writes the text representation of an 8-byte signed integer followed by a line terminator to the text string or stream.

WriteLine(object)

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

WriteLine(float)

Writes the text representation of a 4-byte floating-point value followed by a line terminator to the text string or stream.

WriteLine(string)

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

WriteLine(uint)

Writes the text representation of a 4-byte unsigned integer followed by a line terminator to the text string or stream.

WriteLine(ulong)

Writes the text representation of an 8-byte unsigned integer followed by a line terminator to the text string or stream.

WriteLine(string, object)

Writes a formatted string and a new line to the text string or stream, using the same semantics as the string.Format(string, object) method.

WriteLine(string, params object[])

Writes out a formatted string and a new line, using the same semantics as string.Format(string, object).

WriteLine(char[], int, int)

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

WriteLine(string, object, object)

Writes a formatted string and a new line to the text string or stream, using the same semantics as the string.Format(string, object, object) method.

WriteLine(string, object, object, object)

Writes out a formatted string and a new line, using the same semantics as string.Format(string, object).

WriteLineAsync() : System.Threading.Tasks.Task

Writes a line terminator asynchronously to the text string or stream.

WriteLineAsync(char) : System.Threading.Tasks.Task

Writes a character followed by a line terminator asynchronously to the text string or stream.

WriteLineAsync(char[]) : System.Threading.Tasks.Task

Writes an array of characters followed by a line terminator asynchronously to the text string or stream.

WriteLineAsync(string) : System.Threading.Tasks.Task

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

WriteLineAsync(char[], int, int) : System.Threading.Tasks.Task

Writes a subarray of characters followed by a line terminator asynchronously to the text string or stream.

Protected Methods

Dispose(bool)

Releases the unmanaged resources used by the System.IO.TextWriter and optionally releases the managed resources.

Explicitly Implemented Interface Members

IDisposable.DisposeDocumentation for this section has not yet been entered.