摘要: 1、命名空间: System.Collections.Generic(程序集:mscorlib)2、描述: 1)、从一组键(Key)到一组值(Value)的映射,每一个添加项都是由一个值及其相关连的键组成 2)、任何键都必须是唯一的 3)、键不能为空引用null(VB中的Nothing),若值为引用类型,则可以为空值 4)、Key和Value可以是任何类型(string,int,custom class 等)3、创建及初始化: Dictionary<int, string> myDictionary = new Dictionary<int, string>();4、添 阅读全文
posted @ 2011-12-13 09:21 绿荷 阅读(234) 评论(0) 推荐(0) 编辑