Open rameel opened 3 months ago
Tagging subscribers to this area: @dotnet/area-system-text-encoding See info in area-owners.md if you want to be subscribed.
Tagging subscribers to this area: @dotnet/area-system-io See info in area-owners.md if you want to be subscribed.
Related to https://github.com/dotnet/runtime/issues/106237.
@jozkee Could I take this issue to fix and assign this to me? This seems quite straightforward.
A PR will be up tomorrow 🙂
For reference, see #106658
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.