StringReader.Read(Span<Char>) does not actually throw IOException #9798
Labels
area-System.IO
Pri3
Indicates issues/PRs that are low priority
untriaged
New issue has not been triaged by the area owner
Hi,
The doc for
StreamReader.Read(Span<Char>)
claims that it'll throw an IOException if "the number of characters read from the stream is larger than the buffer length."This is not true, as seen with this code:
StringReader has the same behavior and is documented correctly:
If it's welcome, I would be happy to help fix the documentation
The text was updated successfully, but these errors were encountered: