Skip to content

Conversation

xtqqczze
Copy link
Contributor

@xtqqczze xtqqczze commented Mar 20, 2024

@dotnet-policy-service dotnet-policy-service bot added the community-contribution Indicates that the PR has been added by a community member label Mar 20, 2024
@xtqqczze
Copy link
Contributor Author

xtqqczze commented May 2, 2024

Build Analysis is green.

@stephentoub
Copy link
Member

Thanks, but what does this improve?

@stephentoub stephentoub added the needs-author-action An issue or pull request that requires more info or actions from the author. label May 14, 2024
@xtqqczze
Copy link
Contributor Author

xtqqczze commented May 25, 2024

Thanks, but what does this improve?

SetDefaultFallbacks is sealed in ASCIIEncoding, UTF7Encoding, UTF8Encoding, UnicodeEncoding. This change provides for consistency with these classes and clarifies that the method is not intended to be overridden.

@dotnet-policy-service dotnet-policy-service bot removed the needs-author-action An issue or pull request that requires more info or actions from the author. label May 25, 2024
@xtqqczze
Copy link
Contributor Author

@MihuBot

@xtqqczze
Copy link
Contributor Author

This change enables inlining of SetDefaultFallbacks into the ctor:

MihuBot/runtime-utils#386 (comment)

@stephentoub
Copy link
Member

Thanks, but what does this improve?

SetDefaultFallbacks is sealed in ASCIIEncoding, UTF7Encoding, UTF8Encoding, UnicodeEncoding. This change provides for consistency with these classes and clarifies that the method is not intended to be overridden.

That's fair. Thanks

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-System.Text.Encoding 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.

2 participants