Array List ListT Contiune l Array List System

  • Slides: 64
Download presentation

一. Array. List 與 List<T> 集合類別實作 Contiune… l Array. List 串列集合類別的定義和宣告置於 System. Collections 命名空間內

一. Array. List 與 List<T> 集合類別實作 Contiune… l Array. List 串列集合類別的定義和宣告置於 System. Collections 命名空間內 l List串列集合類別的定義和宣告置於 System. Collections. Generic 命名空間內 l 寫法: using System. Collections ; 使用Array. List 串列 using System. Collections. Generic 使用List<T> 串列

四. Hashtable與Dictionary<TKey, TValue>集合類別 l製作非泛型 Hashtable 集合類別和泛型 Dictionary 集合類別的定義和宣告分別置於 System. Collections 命名空間和 System. Collections. Generic命名空間內,

四. Hashtable與Dictionary<TKey, TValue>集合類別 l製作非泛型 Hashtable 集合類別和泛型 Dictionary 集合類別的定義和宣告分別置於 System. Collections 命名空間和 System. Collections. Generic命名空間內, 程式中若有使用到該類別,必須分別在程式開頭使 用using 來引用對應的命名空間: 使用Hashtable 非泛型雜湊表 using System. Collections ; 使用Dictionary<T> 泛型字典 using System. Collections. Generic