What should I use an IEnumerable or IList?

Viewed 45593

Can anyone tell me when I should use either.

For example, I think I should use an IList when I want to access the .Count of the collection or an individual item, correct?

Thank you.

3 Answers
Related