Apr
23
2008

/dev/null in C#

If you need to direct output into the void in your program on a *NIX system you simply pipe or redirect it to the null device /dev/null.
Needing a similar functionality today in a C# .NET project I found the following equivalent:

Stream.Null

Seemed fairly useful to me ;)

1 Comment »

  • Thanks for the tip, exactly what I needed.

    Comment | 7. July, 2010

RSS feed for comments on this post.
TrackBack URL.

Leave a comment