TextWriter Members

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

Protected Constructors

Name Description
Protected Method TextWriter Instantiates an instance of the TextWriter class.

Public Fields

Name Description
Public Field Static Null Provides a null stream.

Protected Fields

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

Public Properties

Name Description
Public Property Encoding Retrieves the character encoding used by the stream.
Public Property NewLine Gets or sets the line terminator string used by the current TextWriter object.

Public Methods

Name Description
Public Method Close Closes the current writer and releases any system resources associated with it.
Public Method Dispose Overloaded. Releases the resources associated with the current TextWriter.
Public Method Flush Clears all buffers for the current TextWriter and causes any buffered data to be written to the underlying device.
Public Method Write Overloaded. Writes a character or a group of characters to a stream.
Public Method WriteLine Overloaded. Writes one line of characters to a stream.

See Also

Reference

TextWriter Class
System.Ext.IO Namespace