Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mark Encoding as nullable in StreamWriter's constructor #106658

Merged
merged 6 commits into from
Sep 16, 2024

Conversation

stefannikolei
Copy link
Contributor

Fixes #106237

@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

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
144 of 148 checks passed
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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