Remove _isBlocked constraint from StreamReader.Peek() (#89609)
authorDavid CantĂș <dacantu@microsoft.com>
Sat, 29 Jul 2023 02:21:36 +0000 (21:21 -0500)
committerGitHub <noreply@github.com>
Sat, 29 Jul 2023 02:21:36 +0000 (21:21 -0500)
commit60c49c6156e20183e19b87dc7ba8e147674a9f85
tree8f7256c2de448e4f2c00b520f6f4673f541b5fe5
parent6a1dbdf12cdefbec00a9a1f3bc6357e92e5cc622
Remove _isBlocked constraint from StreamReader.Peek() (#89609)

* Remove _isBlocked constraint from StreamReader.Peek()

* Use DelegateStream instead of introducing a new Stream impl
src/libraries/System.IO/tests/StreamReader/StreamReaderTests.cs
src/libraries/System.Private.CoreLib/src/System/IO/StreamReader.cs