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

Consider adding IgnoresAccessChecksTo("Unsupported") #1475

Open
kzu opened this issue May 5, 2024 · 0 comments
Open

Consider adding IgnoresAccessChecksTo("Unsupported") #1475

kzu opened this issue May 5, 2024 · 0 comments

Comments

@kzu
Copy link
Contributor

kzu commented May 5, 2024

Sometimes you need a little tweak so some internal implementation which hasn't been made public API surface because a mainstream enough scenario couldn't be found to support it.

An (little known) escape hatch to avoid visibility checks is available that can unlock very specific and niche cases, provided the user is very clear on the risk of internals changing without notice and their code not being supported in any way.

See https://www.strathweb.com/2018/10/no-internalvisibleto-no-problem-bypassing-c-visibility-rules-with-roslyn/

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

No branches or pull requests

1 participant