Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

One shouldn't be mixing Stream and StreamReader. StreamReader is a subclass of TextReader that is used for reading strings. Stream works on bytes only.

Actually I think the point is kind of moot since the article claims these have identical Read() methods but that is not the case. One returns bytes and the other returns chars and so they have different signatures.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: