友元程序集

[assembly: System.Runtime.CompilerServices.InternalsVisibleTo(程序集,公钥)]

internal class SomeInternalType

{

}

通过以上声明,友元程序集可以访问internal class

原文地址:https://www.cnblogs.com/qook/p/5443247.html