InternalsVisibleTo except for a few classes

I applied InternalsVisibleTo

to one of my projects so that its internals are visible to test projects. However (this is weird, I know) I need to mark a few inner classes so that they are not visible to projects specified via InternalsVisibleTo

.

Is there any attribute I can apply for this that the compiler knows about?

+3


source to share


1 answer


Anderson Silva is right. It's impossible. You should consider porting the types to the new assembly. Alternatively, you might consider using an attribute [EditorBrowsable(EditorBrowsableState.Never)]

to hide the types from IntelliSense, although if the user is aware of them the code will compile.



+5


source







All Articles