Views: 8K
Replies: 1
Archived
|
Why do we use IList instead of List in .NET?Just curious: why do we use IList instead of List in .NET?
Hari Vyas, Oct 24, 2012
|
|
Reply 1Always 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.
Mayur Sirwani, Oct 28, 2012
|