摘要: 1 //键值对集合初始化,声明键和值的数据类型 2 Dictionary dic = new Dictionary(); 3 //添加数据 4 dic.Add("1","张三"); 5 dic.Add("2","李四"); 6 dic.Add... 阅读全文
posted @ 2017-02-11 13:14 冲天小肥牛 阅读(647) 评论(0) 推荐(0) 编辑
摘要: 1 List clist = new List(); 2 clist.Add(0); 3 clist.Add(2); 4 clist.AddRange( new int []{3,4,5,6,7});//往集合中添加数组,最后该数组内的元素,转换成集合中的元素 5 c... 阅读全文
posted @ 2017-02-11 12:43 冲天小肥牛 阅读(192) 评论(0) 推荐(0) 编辑