More on IEnumerable and ICollection
Following up from my post yesterday on enhancing IEnumerable with additional features Phil Haack (Program Manager on ASP.NET for MS) posted a comment on the use of the Count Linq extension method and some of the dangers of using it with generic IEnumerables. With this in mind I would suggest updating my code to enhance ICollection which would remove this risk.
See Phil Haack’s post here.
- Posted in: ASP.NET MVC ♦ Development
- Tagged: Collections, IEnumerable