I keep hearing that in .net 3.5 you should use IEnumerable over a List, but I can’t find any reference materials or articles that explain why it’s so much more proficient. Does
IEnumerable
is not more efficient than a List
as a List
is an IEnumerable
.
The IEnumerable
This interface can be implemented on many types (List
included) to allow those types to to return iterators (i.e. instances of IEnumerator