System.IO.TextWriter Class
Represents a writer that can write a sequential series of characters.

See Also: TextWriter Members

Syntax

[System.Runtime.InteropServices.ComVisible(true)]
public abstract class TextWriter : MarshalByRefObject, IDisposable

Remarks

System.IO.TextWriter is designed for character output, whereas the System.IO.Stream class is designed for byte input and output.

Note: By default, a System.IO.TextWriter is not thread safe. See TextWriter.Synchronized(TextWriter) for a thread-safe wrapper.

Thread Safety

All public static members of this type are safe for multithreaded operations. No instance members are guaranteed to be thread safe.

Requirements

Namespace: System.IO
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0