前言
C#学习过程中发现以ILIst<T>为返回值类型的函数,心中存疑,故对IList<T>和List<T>进行学习比较。
IList<T> — 接口
IList<T> 接口文档
public interface IList<T> : System.Collections.Generic.ICollection<T>,
System.Collections.Generic.IEnumerable<T>
IList<T>继承于ICollection<T>和IEnumerable<T>接口,是所有泛型列表的基接口。
只拥有最最基本的添加等方法,可实现最基本的数据存储。
List<T> — 类
List<T>类文档
publi