Provides a StreamWriter with no backing store that can be written to, but not read from.
Assembly: mscorlib (in mscorlib.dll)
Use Null to redirect output to a StreamWriter that will not consume any operating system resources.
When the StreamWriter.Write methods are invoked on Null, the call simply returns, and no data is actually written to any backing store.
For a list of common I/O tasks, see Common I/O Tasks.
Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98, Windows CE, Windows Mobile for Smartphone, Windows Mobile for Pocket PC, Xbox 360, Zune