Skip to content

Conversation

@stefannikolei
Copy link
Contributor

Fixes #106237

@ghost ghost added the area-System.IO label Aug 19, 2024
@dotnet-policy-service dotnet-policy-service bot added the community-contribution Indicates that the PR has been added by a community member label Aug 19, 2024
Copy link
Member

@jozkee jozkee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please take into account #2376 (comment). I think we should align string overloads with the Stream ones as well as cover StreamReader, and update the tests accordingly.

Copy link
Member

@adamsitnik adamsitnik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@stefannikolei
Copy link
Contributor Author

I also changed the string based constructors and removed the checks for ArgumentNullException in the tests

@stefannikolei stefannikolei requested a review from jozkee August 31, 2024 10:16
Copy link
Member

@jozkee jozkee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Otherwise, LGTM.

@jozkee
Copy link
Member

jozkee commented Sep 16, 2024

/ba-g #104340 (comment).

@jozkee jozkee merged commit eac892a into dotnet:main Sep 16, 2024
jtschuster pushed a commit to jtschuster/runtime that referenced this pull request Sep 17, 2024
* Mark Encoding as nullable in StreamWriter's constructor

* Update reference file

* Align string constructors with Stream

* add explicit test for null as encoding
sirntar pushed a commit to sirntar/runtime that referenced this pull request Sep 30, 2024
* Mark Encoding as nullable in StreamWriter's constructor

* Update reference file

* Align string constructors with Stream

* add explicit test for null as encoding
@github-actions github-actions bot locked and limited conversation to collaborators Oct 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-System.IO community-contribution Indicates that the PR has been added by a community member

Projects

None yet

Development

Successfully merging this pull request may close these issues.

StreamWriter constructor documentation mismatch with implementation

3 participants