摘要:
准确的说,不能一概而论。 [MSDN] Classes and structs that are not nested within other classes or structs can be either public or internal. A type deleted as public is accessible by any other type. A type deleted as internal is only accessible by types within the same assembly. Classes and structs are deleted as 阅读全文
摘要:
CLR(公共语言运行库) 主要作用是为我们定位、加载和管理.Net类型,同时也负责一些底层细节的工作,如内存管理,创建应用程序域、线程、和上下文边界,安全检查等。 CLR 运行库可以理解为执行给定编译代码单元所需的外部服务的集合。CLR 中最重要的是由名为mscoree.dll(又称公共对象运行库执行引擎)的库。当用户程序引用一个程序集,要使用它时,mscoree.dll将首先自动加载,然后由它负责将需要的程序集导入内存。运行时引擎需要负责许多任务,首要的任务是负责解析程序集的位置,并通过读取其中的元数据,在二进制文件中发现所请求的类型。接着,CLR 在内存中为类型布局,将关联的CLR编译成特 阅读全文