Skip to content
Discussion options

You must be logged in to vote

The only alternative that the CLR supports is through the use of InternalsVisibleToAttribute which specifies that an external assembly may access the internal members within this assembly. Without CLR support beyond that the C# compiler can't create new forms of accessibility, at least not that can be enforced.

I'd also highly question any design that necessitates the selective exposure of any members like that.

Replies: 8 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by YairHalberstadt
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
5 participants
Converted from issue

This discussion was converted from issue #1759 on October 18, 2020 07:51.