Home  /  Questions  /  Question



50   50
Oct 24, 2012


Why do we use IList instead of List in .NET?

Just curious: why do we use IList instead of List in .NET?




50   50
Oct 28, 2012
Always try to use the interface where possible to allow the user to have more flexibility on which implementation they use. Generally, IEnumerable and IQueryable are even better thanIList as they're more generic.