2013年12月6日

有序字典

摘要: /*有序字典SortedDictionary类的使用,它是一个二叉搜索树它比SortedList的元素插入和删除速度比较快。SortedList的内存比它占用的要少,在已排序的数据填充集合时SortedList要快。*/using System.Collections.Generic;namespace Frank{ public class Test { //程序入口 public static void Main(string[] args) { SortedDictionary sd = new SortedDictionary(); sd.A... 阅读全文

posted @ 2013-12-06 15:21 wp456 阅读(169) 评论(0) 推荐(0)

Lookup类的使用

摘要: /*Lookup类的使用 一键多值*/using System.Linq;using System.Collections.Generic;namespace Frank{ public class Test { //程序入口 public static void Main(string[] args) { List list = new List(); list.Add(new Racer("jack","wuhan")); list.Add(new Racer("tom","wuhan")); list.Add 阅读全文

posted @ 2013-12-06 14:43 wp456 阅读(259) 评论(0) 推荐(0)

导航