StreamReader constructor documentation mismatch with implementation #106236
Labels
area-System.IO
help wanted
[up-for-grabs] Good issue for external contributors
in-pr
There is an active PR which will close this issue when it is merged
Milestone
There is an inconsistency between the documentation and the actual implementation of the
StreamReader
constructors. The documentation states that passingnull
to theEncoding
parameter in some constructors, except the main one, will result in an exception being thrown. However, all these constructors pass theEncoding
argument to the main constructor, which allowsnull
.StreamReader.cs
Documentation
Suggested Fix:
Encoding
parameter as nullable in these constructors.The text was updated successfully, but these errors were encountered: