C# 中的集合(Array/ArrayList/List<T>/HashTable/Dictionary)
C# 中的集合(Array/ArrayList/List<T>/HashTable/Dictionary)
int [] numbers = new int[5]; // 长度为5,元素类型为 int。 不同的格式: |
|
System.Collections.ArrayList ArrayList al = new ArrayList(); al.Add(5); al.Add("Hello Tom"); |
System.Collections.Generic.List<T> List<int> intList = new List<int>(); intList.Add(500); intList.AddRange(new int[]{1,100}; intList.Insert(1, 1000); cw(intList.Contains(100)); cw(intList.indexOf(10)); |
System.Collections.HashTable HashTable ht = new HashTable(); ht.Add("name", "Tom"); ht.Add("age", 18); |
System.Collections.Generic.Dictionary Dictionary<string, string> dic = new Dictionary<string, string>(); dic.Add("name", "Tom"); dic.Add("age", "eighteen"); |
- C# 中的集合(Array/ArrayList/List<T>/HashTable/Dictionary)
- C# 中的集合(Array/ArrayList/List<T>/HashTable/Dictionary)
- C#使用集合组织数据(HashTable、ArrayList、List<T>,Dictionary<K,V>
- C#常见的几种集合 ArrayList,Hashtable,List<T>,Dictionary<K,V> 遍历方法对比
- C# 集合类总结 :(Array、 Arraylist、List、Hashtable、Dictionary、Stack、Queue)
- Array,ArrayList,List<>,Dictionary和HashTable
- C#集合类(Array、Arraylist、List、Hashtable、Dictionary、Stack、Queue)
- 粗谈C#里 dictionary,HashTable,List<T>,Array 的性能优缺和实现原理。
- .Net学习 第2季05 C#面向对象 ArrayList Hashtable List<> Dictionary<>
- C#集合的區別(Array、Arraylist、 List、 Hashtable、SortedList、 Dictionary、 Stack、 Queue )
- [C#]泛型与非泛型集合类的区别及使用例程,包括ArrayList,Hashtable,List<T>,Dictionary<Tkey,Tvalue>,SortedList<Tkey,Tvalue>,Queue<T>,Stack<T>等
- C# 集合类总结(Array,Arraylist,List,Hashtable,Dictionary,Stack,Queue)
- C#集合类(Array、Arraylist、List、Hashtable、Dictionary、Stack、Queue)
- C# 数组集合 <一>基本概念(Array&ArrayList&List<T>&SortList&LinkList的实现Code)
- 总结C#集合类 Array Arraylist List Hashtable Dictionary
- C#集合类(Array、Arraylist、List、Hashtable、Dictionary、Stack、Queue)
- [C#]泛型与非泛型集合类的区别及使用例程,包括ArrayList,Hashtable,List<T>,Dictionary<Tkey,Tvalue>,SortedList<Tkey,Tvalue>,
- C# 集合类 :(Array、 Arraylist、List、Hashtable、Dictionary、Stack、Queue)
- C# 集合整理 StringCollection,Array,ArrayList,IList,Item,Queue,Stack,Hashtable,SortedList
- 总结C# 集合类 Array Arraylist List Hashtable Dictionary Stack Queue