views:

194

answers:

3

Hi,

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?

 Thanks, Greg
A: 

Microsoft says:

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

This property is not implemented.

http://msdn.microsoft.com/en-us/library/system.runtime.compilerservices.internalsvisibletoattribute.allinternalsvisible.aspx

Robert Harvey
+1  A: 

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.

froh42
A: 

Funny thing is, if you set it to true, you lose intellisense in the consuming project o_O Tested with vs2008, using c# and .net 3.5.

Martin Ørding-Thomsen