Search code examples
c#assembliesfriendinternalsvisibleto

What is "AllInternalsVisible" parameter of assembly:InternalsVisibleTo attribute?


My IntelliSense is coming up with a boolean named parameter "AllInternalsVisible=" in an [assembly:InternalsVisibleTo("AssemblyName")] declaration. Just position the cursor after the second double-quote and hit Ctrl-space. What is that - I cannot find any documentation on MSDN about that. I am using VS2005 and .Net 2.0.

As a related topic, I'm doing some research on friend assemblies, and I thought that once you grant a friend assembly access to internals, the friend assembly has access to ALL internals and you can't really get granular about it. Is that true, or is there a way (as suggested above) that you could grant a friend assembly access to some internal types/members but not all?


Solution

  • MSDN Says:

    InternalsVisibleToAttribute..::.AllInternalsVisible Property

    This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

    This property is not implemented.