【internal】
internal关键字是用来修饰类和类的成员的,表示该内容只能在本程序集中访问。
程序集:一般输出形式为dll或exe的文件。
例子:
如果某个程序集中,有如下的类:
namespace InternalTest { internal class InternalTest1 { ... } public class InternalTest2 { ... } }
那么在另外一个程序集中,可以访问InternalTest2,但是不能访问InternalTest2。
【protect internal】
protect internal 是指protect or internal是指:在同一程序集中,或派生类中可以访问。