Hi there!
I have a class, that wrapps a Stream instance, so I can use it for wrapping FileStreams and NetworkStreams. Now, I want to test if the stream is still delivering any data, in other words, I want to test the NetworkStream if it is still connected or the FileStream if it reached its end.
Is there any function whose return value I can use to determine if the next Stream.Read() will cause an exception?
Thanks in advance.