Where is my way?

 

C#集合与接口(一)

1.集合接口

C#提供以下接口

ICollection<T> 泛型集合的基接口



IEnumerable<T>

IEnumerator<T> 实现foreach语句枚举集合



ICollection<T> 所有集合都要实现,以提供CopyTo()方法,以及Count、IsSynchronized(线程安全) SyncRoot属性



IComparer<T> 比较集合中的两个对象以对集合的排序

IComparable<T>



IList<T> 肜于数组可索引的集合

IDictionary<K,V> 用于基于<键,值>对的集合



posted on 2011-10-09 20:27  ManLoveGirls  阅读(415)  评论(0编辑  收藏  举报

导航