1.向HashTable中添加数据 Value存的是一个ArrayList,命名空间:using System.Collections;
2.向HashSet中添加数据,需添加引用System.Core,命名空间:using System.Collections.Generic;
用法:要存放的数据是唯一的就用HashSet
要存放的数据不是唯一的就用HashTable |
|
来自: shymi > 《Winform常用功能》