What is the "AllInternalsVisible" assembly: InternalsVisibleTo attribute?

My IntelliSense comes up with a boolean named parameter "AllInternalsVisible =" in the declaration [assembly:InternalsVisibleTo("AssemblyName")]

. Just place your cursor after the second double quote and press Ctrl-space. What is it - I can't find MSDN documentation about it. I am using VS2005 and .Net 2.0.

As a related topic, I am doing some research on Friends Builds, and I thought that once you give the Friends Build access to the internals, the Friends Bundle has access to all the internals, and you cannot get a detailed report on it. It's true , or is there a way (as suggested above) so that you can give the friends assembly access to some internal types / members, but not all?

+2


source to share


3 answers


MSDN Says:



InternalsVisibleToAttribute .. ::. AllInternalsVisible Property

This API supports the .NET Framework framework and is not directly used from your code.

This property is not implemented.

+5


source


In Silverlight , setting this to true means that anything with "friend" or "internal" visibility becomes visible to another assembly. If it is not set, then only the FriendAccessAllowed members are visible .



On the .NET desktop, the property is not used as all internal members are made visible as you mentioned in your question.

+3


source


Microsoft says:

This API supports the .NET Framework framework and is not directly used from your code.

This property is not implemented.

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

+1


source







All Articles