Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.

Added optional/default parameters for StreamWriter/StreamReader #24056

Merged
merged 6 commits into from
Apr 25, 2019
Merged

Added optional/default parameters for StreamWriter/StreamReader #24056

merged 6 commits into from
Apr 25, 2019

Conversation

jdemis
Copy link
Member

@jdemis jdemis commented Apr 17, 2019

This resolves the CoreCLR side of dotnet/corefx#8173

@jdemis
Copy link
Member Author

jdemis commented Apr 17, 2019

The CoreFX side: dotnet/corefx#36959

@jkotas
Copy link
Member

jkotas commented Apr 17, 2019

Could you please disable the outdated CoreFX test in https://github.com/dotnet/coreclr/blob/master/tests/CoreFX/CoreFX.issues.json to make the PR green

@jdemis
Copy link
Member Author

jdemis commented Apr 18, 2019

According to failing builds, it looks like System.Text.Encoding is not nullable anymore:

error CS8625: Cannot convert null literal to non-nullable reference type

Is it intended? Should I change the constructor to nullable "Encoding?"
/cc @JeremyKuhne @safern

@stephentoub
Copy link
Member

Thanks. @JeremyKuhne, can you please review as well?

Copy link
Member

@JeremyKuhne JeremyKuhne left a comment

Choose a reason for hiding this comment

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

Looks good, thanks!

@stephentoub stephentoub merged commit 57a40b9 into dotnet:master Apr 25, 2019
@jdemis jdemis deleted the 8173 branch April 25, 2019 09:04
picenka21 pushed a commit to picenka21/runtime that referenced this pull request Feb 18, 2022
…et/coreclr#24056)

* Added optional/default parameters for StreamWriter/StreamReader

* Disabled outdated test

* Changed default encoding to UTF8NoBOM

* Made encoding parameter nullable


Commit migrated from dotnet/coreclr@57a40b9
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants