A PipeStream implementation in C#