Note: Stream.Null is used to redirect output to a stream
that does not consume any operating system resources. When the methods of System.IO.Stream that provide writing are invoked on Stream.Null
, they simply return, and no data is written. Stream.Null also implements a Stream.Read(Byte[], int, int) method that returns zero without reading data.