- 博客(6)
- 资源 (6)
- 收藏
- 关注
原创 装配件(.NET)之结构
装配件由描述它的元数据,描述导出类和方法的类元数据,MSIL代码和资源组成.这些部分都在一个文件中或颁布在几个文件中. 在Componet.dll中,装配件的元数据,类的元数据,MSIL代码和资源都在一个文件中,如果下表. Componet.dll
2007-09-07 16:19:00 1198
原创 装配件(.NET)
装配件是自我描述的安装单元,由一个或多个文件组成,一个装配件可以是一个包括元数据的DLL或EXE,也可以由多个文件组成,例如资源文件,元数据,DLL和EXE.装配件的安装仅是复制所有的文件而已,使用xcopy命令即可完成安装.装配件的另一个优点是它们可以是私有或共享的.如果在注册表中搜索一个COM组件或使用OleView,就能查看上百个组件,这些组件很少用于多个应用程序,但每个组件都必须有一个全局
2007-09-07 11:20:00 2093
原创 字典(C#)之字典的工作原理
字典的使用非常方便,但这里有一个问题:Hashtable(和其它字典类)使用某种算法,根据键来确定每个对象的位置,实际上,该算法并不完全是由Hashtable提供的.它有两个部分,其中一部分的代码必须由key类来提供.如果使用一个Microsoft提供的类,并把这个类用作键(例如字符串),就不会有任何问题但如果自己编写的key,就必须自己编写这部分算法.在计算机中,由key类执行的部分算法称为
2007-09-05 14:54:00 6889
原创 字典(C#)之.NET中的字典
在.NET中,基本的字典是由类Hashtable来表示的,它遵循现实生活中字典的规则,但假定健和条目都是O bject类型.散列表可以存储各类数据结构,而现实生活中的字典只使用字符串,作为它的健.虽然Hashtable表示可以存储任何东西的一般字典,但也可以定义自己的更专门化的字典类.Microsoft提供了一个抽象基类DicionaryBase,它具有基本的字典功能,从中可以派生自己的字典类
2007-09-05 14:11:00 2683
原创 字典(C#)之现实中的字典
使用字典这个名字,是因为其数据结构非常类似于现实生活中的字典.在一本字典中,可以通常查找某个字的含义(在外语字典中,则可以查找一个单词的汉译);给出含义的几行文本(或翻译)就是我们感兴趣的数据.大的字典会有成千上万个条目,在查找字的含义时,使用这样的字典肯定可以查到,因为我们是按字母顺序 查找的.此时,要查找的字就相当于用于获取自己感兴趣的数据的键.我们对字本身并不像与之相关的数据那样感兴趣.这个
2007-09-05 13:45:00 1155
原创 字典(C#)
字典是非常复杂的数据结构,这种数据结构允许按照某个键来访问元素, 这个键可以是任意数据类型.字典还可以称为映射或散列表.在希望把数据保存为数组,但希望使用其它数据类型(不是数字类型)来给结构建立索引时,字典是非常合适的.它们也可以自由添加或删除元素,有点像ArrayList. 如果使用字典?我们假定有一个Employee类,有EmployeeID,EmployeeData两项来记录Employ
2007-09-05 13:33:00 2441
apache cordova 3 promagramming
2015-05-11
Programming.WCF.Services.Feb.2007
2009-12-30
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人