Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 361
Greg Graham Avatar asked Dec 17 '22 05:12

Greg Graham


1 Answers

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.

like image 105
froh42 Avatar answered Dec 19 '22 18:12

froh42