Trying to implement Streams in C#