Skip to content

Clarify that InternalsVisibleTo exposes private protected to a friend assembly #1844

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

Merged
merged 6 commits into from
Feb 13, 2019

Conversation

glebuk
Copy link
Contributor

@glebuk glebuk commented Feb 13, 2019

Summary

Added small note that explain behavior of private protected access modifier with regards to InternalVisibleTo attribute. When reading the doc it is not clear that this attribute makes private protected available, as it only mentions internal.

The behavior of the new in C# 7.2 is ambigious with regards to whether InternalVisibleTo exposes it to friend assemblies or not.
It is good to explicitly state that private protected is treated as internal and not as private with regards to cross-assembly visiblity
Copy link
Member

@BillWagner BillWagner left a comment

Choose a reason for hiding this comment

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

Thanks for making this update @glebuk I've reviewed the change and I'll :shipit: now

@BillWagner BillWagner merged commit 8943565 into dotnet:master Feb 13, 2019
@mairaw mairaw added this to the February 2019 milestone Feb 13, 2019
@glebuk glebuk deleted the patch-1 branch February 13, 2019 18:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants