IList vs List [duplicate]

IList<int> myList = new List<int>();

will only expose the methods exposed by the interface IList

List<int> myList = new List<int>();

will expose all members of the List object

I’m not going to list all the differences here, but you can check out the member lists on MSDN for a complete list for each:

IList(T) Members
List(T) Members

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)