首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > .NET > C# >

(原创)(C#漫笔)IEnumerable< ICollection < IList区别

2013-09-09 
(原创)(C#随笔)IEnumerable ICollection IList区别public interface IListT : ICollectionT, IEnum

(原创)(C#随笔)IEnumerable< ICollection < IList区别

    public interface IList<T> : ICollection<T>, IEnumerable<T>, IEnumerable    {        int IndexOf(T item);        void Insert(int index, T item);        void RemoveAt(int index);        T this[int index] {get;set; }    }
可见,IList要比ICollection要多索引器的功能,另外还可以用索引器来进行修改,标识IList是可读写的链表,而ICollection是只读的链表;

热点排行