就我个人觉得Dictionary, SortedDictionary, SortedList 这几个类的使用是比较简单的,只要稍微花点时间在网上查找一点资料,然后在阅读以下源码就理解的很清楚了.为什么要写这一片文章了,看一下code吧: Dictionary<int, object> dict = new Dictionary<int, object>(); //load data to dict int key = 1; object obj = null; if (dict.C…
C#的集合类命名空间介绍: // 程序集 mscorlib.dll System.dll System.Core.dll // 命名空间 using System.Collections:集合的接口和类 using System.Collections.Generic:泛型集合的接口和类,强类型安全 using System.Collections.Specialized:专用的和强类型的集合 using System.Collections.Concurrent:线程安全的集合 集合基于ICo…