[assembly: System.Runtime.CompilerServices.InternalsVisibleTo(程序集,公钥)]
internal class SomeInternalType
{
}
通过以上声明,友元程序集可以访问internal class