您的位置:首页 > 编程语言 > C#

C# Assembly学习

2012-05-28 16:02 246 查看
最近项目开发中,经常使用到接口映射和反映射的一些机制,深感理论缺乏,自己开发出来也很困难,个人觉得C# Assembly 这一块需要深入学习了。

先去百度了一些资料,可以看到C# Assembly的一些简单学习,深入的资料也比较少,后来同事推荐了一个电子文档C# 4.0 in a Nutshell,里面是第一手资料,全英文的,看得有些费力,不过还是要坚持了。

重点学习以下几章节:

1.Assembly

2.Reflection And Metadata

3.Dynamic Programming

4.Parallel Programming

当然,还有几块例如:Threading和Security也是很有兴趣,能高级应用的部分。

什么是Assembly(程序集)?

Assembly是一个包含来程序的名称,版本号,自我描述,文件关联关系和文件位置等信息的一个集合。在.net框架中通过Assembly类来支持,该类位于System.Reflection下,物理位置位于:mscorlib.dll。

下面是原本资料的定义

What’s in an Assembly?

An assembly contains four kinds of things:

An assembly manifest

Provides information to the .NET runtime, such as the assembly’s name, version,

requested permissions, and other assemblies that it references

An application manifest

Provides information to the operating system, such as how the assembly should

be deployed and whether administrative elevation is required

Compiled types

The compiled IL code and metadata of the types defined within the assembly

Resources

Other data embedded within the assembly, such as images and localizable text

Of these, only the assembly manifest is mandatory, although an assembly nearly

always contains compiled types.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: