Share via


TextWriter Members

The following tables list the members exposed by the TextWriter type.

Public Constructors

Name Description
Public Method TextWriter Initializes a new instance of the TextWriter class.

Public Fields

Name Description
Public Field CoreNewLine Stores the new line characters used for this TextWriter.

Public Properties

Name Description
Public Property Encoding When overridden in a derived class, returns the Encoding in which the output is written.
Public Property NewLine Gets or sets the line terminator string used by the current TextWriter.

Public Methods

Name Description
Public Method Close Closes the current writer and releases any system resources associated with the writer.
Public Method Dispose Releases the unmanaged resources used by the TextWriter and optionally releases the managed resources.
Public Method Flush Clears all buffers for the current writer and causes any buffered data to be written to the underlying device.
Public Method Write Writes the text representation of an 8-byte unsigned integer to the text stream.
Public Method WriteLine Writes a string followed by a line terminator to the text stream.

See Also

Reference

TextWriter Class
System.IO Namespace