~Roxy's Blog~

Easy come,easy go~

2009年12月28日

C# Dictionary 终极使用方法(转)

摘要: 查看文章using System; using System.Collections.Generic; class DictionaryDemo { static void Main(string[] args) { DictionaryDemo001(); Console.ReadLine(); DictionaryDemo002(); Console.ReadLine(); Dic... 阅读全文

posted @ 2009-12-28 13:30 Roxy_sy 阅读(244) 评论(0) 推荐(0)
C# Dictionary 泛型字典集合(转)

摘要: 泛型最常见的用途是泛型集合,命名空间System.Collections.Generic 中包含了一些基于泛型的集合类,使用泛型集合类可以提供更高的类型安全性,还有更高的性能,避免了非泛型集合的重复的装箱和拆箱。 很多非泛型集合类都有对应的泛型集合类,下面是常用的非泛型集合类以及对应的泛型集合类:非泛型集合类 泛型集合类 ArrayList List<T> HashTable DIc... 阅读全文

posted @ 2009-12-28 13:27 Roxy_sy 阅读(585) 评论(0) 推荐(0)