C#:关于System.Collections空间
来源:互联网 发布:golang interface 编辑:程序博客网 时间:2024/06/15 13:33
转自:http://www.cnblogs.com/eagle1986/archive/2011/11/28/2265675.html
System.Collections命名空间包含可使用的集合类和相关的接口,提供了集合的基本功能。
该命名空间下的.NET非泛型集合类如下所示:
— System.Collections.ArrayList:数组集合类,使用大小可按动态增加的数组实现Ilist接口。
— System.Collections.BitArray:布尔集合类,管理位值的压缩数组,该值为布尔值。
— System.Collections.Queue:队列,表示对象的先进先出集合。
— System.Collections.Stack:堆栈,表示对象的简单的后进先出集合。
— System.Collections.Hashtable:哈希表,表示键/值对的集合,这些键/值对根据键的哈希代码进行组织
— System.Collections.SortedList:排序集合类,表示键/值对的集合,这些键和值按键排序并可按键和索引访问。
该命名空间下的.NET非泛型接口如下所示:
— System.Collections.ICollection:(继承于IEnumerable)定义所有集合的大小,枚举器和同步方法,可以获取集合中项的个数,并能把项复制到一个简单的数组类型中。
— System.Collections.IComparer:比较两个对象的方法
— System.Collections.IList:(继承于IEnumerable 和 ICollection)表示可按照索引单独访问一组对象,提供集合的项列表,并可以访问这些项。
— System.Collections.IDictionary:(继承于IEnumerable 和 ICollection)表示键/值对的集合
— System.Collections.IDictionaryEnumerator:枚举字典的元素
— System.Collections.IEnumerator:支持在集合上进行简单迭代,可以迭代集合中的项。支持在非泛型集合进行简单迭代。
- C#:关于System.Collections空间
- C#关于System.Collections空间详解
- System.Collections 命名空间
- System.Collections命名空间
- System.Collections命名空间
- System.Collections命名空间
- System.Collections.Generic 命名空间
- System.Collections.Generic命名空间
- System.Collections.Generic 命名空间
- System.Collections.Generic 命名空间
- System.Collections.Generic 命名空间1
- System.Collections.Generic 命名空间接口、结构
- 关于System表空间
- Asp.Net 之System.Collections空间的ArrayList
- 定义泛型集合的命名空间:System.Collections.Generic
- System.Collections
- System.Collections、System.Collections.Generic、System.Collections.Specialized
- 关于system表空间碎片整理问题
- Compile env setup for Android source
- 学习Swift笔记 (七)
- 【matlab学习笔记】矩阵的表示和常用符号
- 解决安装WordPress主题及插件需要输入FTP问题
- MyEclipse10离线安装PyDev
- C#:关于System.Collections空间
- GNUMakefiles之Makefiles的条件语句
- android UI设计 要素
- 二分法解决高精度
- easyui所有图标集
- 欧拉函数 FZOJ 1759 Super A^B mod C
- mysql语句:SET NAMES UTF8
- 指针和数组(上)
- 数组指针和指针数组的区别