以文本方式查看主題

-  曙海教育集團論壇  (http://www.scb-ycwb.com/bbs/index.asp)
--  Microsoft.NET Framework  (http://www.scb-ycwb.com/bbs/list.asp?boardid=68)
----  Applied Microsoft Net Framework Programming讀書筆記  (http://www.scb-ycwb.com/bbs/dispbbs.asp?boardid=68&id=2539)

--  作者:wangxinxin
--  發布時間:2010-12-13 14:27:37
--  Applied Microsoft Net Framework Programming讀書筆記

開始讀Jeffrey Richter的Applied Microsoft Net Framework Programming,將自己的理解記錄下來增加理解。

已經讀到第二章了,就從第二章開始記吧!

Chapter 2: Building, Packaging, Deploying, and Administering Applications and Types

DOT NET Framework Deployment Goals

Previous Windows Pragram have three question:

 1 DLL hell cause application  unstale

2 Customers are diffuclt to manage installing application.

3 Security problem.Customers didn\'t know what the application have do.

Building Types into a Module

MSCorLib.dll is a special file in that it contains all the core types, such as bytes, integers,
characters, strings, and so on. In fact, these types are so frequently used that the C# compiler
automatically references this assembly.

A managed PE file has four main parts: the PE header, the CLR header, the metadata, and the intermediate language (IL).

 The PE header is the standard information that Windows expects.

CLR header was defined as struct the IMAGE_COR20_HEADER(We can find the definition from the the CorHdr.h header file.

typedef struct IMAGE_COR20_HEADER
{
    // Header versioning
    ULONG                   cb;             
    USHORT                  MajorRuntimeVersion;
    USHORT                  MinorRuntimeVersion;
   
    // Symbol table and startup information
    IMAGE_DATA_DIRECTORY    MetaData;       
    ULONG                   Flags;          
    ULONG                   EntryPointToken;
   
    // Binding information
    IMAGE_DATA_DIRECTORY    Resources;
    IMAGE_DATA_DIRECTORY    StrongNameSignature;

    // Regular fixup and binding information
    IMAGE_DATA_DIRECTORY    CodeManagerTable;
    IMAGE_DATA_DIRECTORY    VTableFixups;
    IMAGE_DATA_DIRECTORY    ExportAddressTableJumps;

    // Precompiled image info (internal use only - set to zero)
    IMAGE_DATA_DIRECTORY    ManagedNativeHeader;
   
} IMAGE_COR20_HEADER;

The metadata is a block of binary data that consists of several tables. There are three categories of
tables: definition tables, reference tables, and manifest tables.

Combining  Modules to form an assembly

An assembly is a collection of one or more files containing type definitions and resource files,the following characteristics of assembly should be remembered:

An assembly defines the reusable types

An assembly is marked with a version number

An assembly can have secuity information associated with it


主站蜘蛛池模板: 无码人妻熟妇av又粗又大| 精品一区二区三区色花堂| 男女一进一出猛进式抽搐视频| 日本亚洲色大成网站www久久| 国产成人久久精品区一区二区| 亚洲中文字幕av每天更新| xxxxx日本人| 欧美xxxx三人交性视频| 国产精品99久久久精品无码| 亚洲一级免费视频| 中文字幕激情视频| 欧美a级片在线观看| 国产挤奶水主播在线播放| 久久精品天天中文字幕人妻| 黑人狠狠的挺身进入| 日本欧美大码aⅴ在线播放| 国产三级在线观看完整版| 中文字幕av无码不卡免费| 精品真实国产乱文在线| 女人全身裸无遮挡图片| 亚洲精品永久www忘忧草| 7777精品伊人久久久大香线蕉| 欧美剧情影片在线播放| 国产欧美日韩综合精品二区| 久久天天躁狠狠躁夜夜不卡| 翁公厨房嫒媛猛烈进出| 影音先锋在线_让看片永远陪伴| 免费看美女脱衣服| 97精品伊人久久久大香线蕉| 欧美在线暴力性xxxx| 国产女人喷潮视频在线观看| 久久久久久AV无码免费看大片 | 嫩草影院在线免费观看| 人妻中文字幕在线网站| 人妻蜜と1~4中文字幕月野定规| h文站着从后面挺进孕妇| 欧美高清视频www夜色资源网| 国产精品久久久久久久久久免费 | 国产在线精品二区赵丽颖| 久久99热成人精品国产| 精品一二三区久久AAA片|