Provides a repository with no backing store that can be written to, but not read from. Use Null to redirect output to a stream that will not consume any operating system resources.
[Visual Basic] Public Shared ReadOnly Null As StreamWriter [C#] public static readonly StreamWriter Null; [C++] public: static readonly StreamWriter* Null; [JScript] public static var Null : StreamWriter;
When the StreamWriter Write methods are invoked on Null, the call simply returns, and no data is actually written to an underlying data source or repository.
StreamWriter Class | StreamWriter Members | System.IO Namespace