We have some methods that are internal
but that people may need visible in test projects (and only test projects). To enable that, we had to add a bunch of InternalsVisibleTo
statements at the top of a class. This is a library that may be used by many other projects and to help with testing and verification, we'd like to make the packages that can see the internals be settable at runtime.
Is this possible?
Example (Pseudo code):
[assembly: InternalsVisibleTo( System.ReadFromCommandLine("package"))]