Tag: ienumerable ilist

我应该使用IEnumerable或IList?

任何人都可以告诉我何时应该使用它们。 例如,我想当我想访问集合的.Count或单个项目时,我应该使用IList,对吗? 谢谢。