Can I safely close a System.IO.Stream (or any of the wrappers or Readers) from a second thread?
I've a new System.IO.StreamReader(inputStream, Encoding.ASCII); reading from network, and am considering shutting it down from another thread by closing it.
If this is not a good idea then what's another way of forcing the thread blocking in a read call from returning?
No it is not safe to blindly call the Close method from a separate thread. The Stream class is not listed as thread safe and calling Close from another thread while the original thread is using it will result in undefined behavior.