Week 5, year 2015
- IEnumerable interface in .NET and LSP - I often see developers saying that in most cases, use of IEnumerable breaks LSP. Does it? Let’s find out. This is the continuation of my article Read-Only Collections and LSP. It this post, I’d like to discuss IEnumerable interface from a Liskov Substitution Principle (LSP) perspective. Liskov Substitution Principle and IEnumerable interface To answer the question whether or not use of IEnumerable breaks LSP, we should step back and see what it means to break LSP. [Enterprise Craftsmanship]
Permalink |
From 26 January 2015 to 01 February 2015 |
Last updated on: Mon, 7 Jun 2021 09:11:15 GMT