- 博客(6)
- 资源 (4)
- 收藏
- 关注
原创 Hashable对象介绍
创建一个Hashable对象时,可以指定它的原始容量:Hashtable Employees=new Hashable(53);Hashable有很多其他的构造函数,在字典中使用内部算法时,如果容量是一个素数,它的工作效率最高。给Hashtable添加一个对象,要使用方法Add(),但Hashtable.add()带两个参数,它们都是对象的应用。第一个参数是键的引用,第二个参数是对数据
2005-01-31 14:22:00 912
原创 C#中的集合概念
对象如果可以提供相关对象的引用,就是一个集合,称为枚举,遍历集合中的项目。集合必须执行接口System.Collentions.LEnumerable, LEnumerable只定义了一个方法,如下所示:Interface IEnumeralbe{ IEnumerator GetEnumerator();}IEnumerator的工作方式如下: 执行该接口的对象与一个集合相
2005-01-28 14:51:00 1989
原创 How most exceptions should be handled.
Exception flow: How most exceptions should be handled.
2005-01-28 09:37:00 532
原创 Reference Types and Values Types
Reference Types and Values Types: reference types and value types. Of the two, you will run into reference types much more often. Reference types are always allocated from the managed heap, and the c
2005-01-20 10:13:00 798
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人