
Essential.NET
crystalxie
这个作者很懒,什么都没留下…
展开
-
.NET程序集导入过程
.NET程序集导入过程分为两个部分,一个是通过Assembly Resolver找到程序集,随后通过Assembly Loader将其导入。 Assembly Resolver 首先运用Version Policies来确定最终的程序集版本。Version Policy可以在三个级别指定,分别是应用程序级别,组件级别和machine级别。每一级都可以通过bindingRedirect将版...2010-08-14 21:59:01 · 224 阅读 · 0 评论 -
.Net应用程序的运行过程
当运行一个.NET应用程序时,OS会先建立一个进程,检查PE文件,执行PE文件中的.text段中的code, 在托管程序编译时,.text段里面增加了一条JMP_CorExeMain或JMP_CorDllMain指令(根据是exe文件还是dll文件不同)。若是非托管程序,就进入到入口函数了,若是托管程序就会跳入到另一个函数中。这个函数在一个叫做MSCorEE.dll的动态链接库文件中,当安装了.n...2010-08-14 22:56:07 · 387 阅读 · 0 评论 -
Types and Initialization
Types are allowed to provided a distinguished method that is called when the type is first initialized. This type initializer is simply a static method with a well-known name(.cctor). A type can have ...2010-06-05 10:19:58 · 216 阅读 · 0 评论 -
Types and Interfaces
Interface is just another type of the CLR. Interfaces can have members, with the restriction that an interface cannot have instance fields nor instance methods with implementation. One can view inte...2010-06-05 11:01:51 · 121 阅读 · 0 评论 -
Type Fundamentals
There are three fundamental kind of type members: fields, methods and nested types. The field of a type control how memory is allocated. The CLR will allocate memory for static field once: when the t...原创 2010-06-25 10:37:15 · 140 阅读 · 0 评论 -
Types and Base Types
Non-interface types that do not specify a base type get System.Object as their base type. Declare a type as sealed prohibits the use of the type as a base type. Declareing a type as abstract, on the ...原创 2010-06-25 10:38:07 · 120 阅读 · 0 评论 -
Types at Runtime
Every object in the CLR begins with a fixed-size object header. The Object header has two fields. The first field of the object header is the sync block index. The second field of the object header is...原创 2010-06-28 17:11:16 · 111 阅读 · 0 评论