Hyun-jik Bae wrote:
Is there anything in C# correspondent to 'friend' keyword in C++?
I searched documents and found something [assembly:blahblah] but I am not
sure if it is what I am searching for.
Please reply. Thanks in advance.
Hyun-jik Bae
C# 2.0 allows you to specify "friend" assemblies. Basically, this
allows you to expose internal types to another assembly. This is done
with the assembly attribute InternalsVisibleTo. So, to let assembly 2
access assembly 1's internal types, you would add:
[assembly:InternalsVisibleTo ("assembly2")]
to assembly 1.
HTH
--
Tom Shelton