DEV Community

Discussion on: I got called out for using IEnumerable on methods

Collapse
 
davejsaunders profile image
Dave Saunders

This blog post talks about another thing to consider; boxing can occur when you pass interfaces around, rather than concrete types IList<> vs List<>.

If performance is important, it's worth thinking about:
Beware of the IDictionary