Discussion on "How .Net breaks Liskov Substitution Principle and Solves it at the same time" | Hashnode
Discussion on "How .Net breaks Liskov Substitution Principle and Solves it at the same time". Ever traced the .NET collection hierarchy and wondered why ICollection has an IsReadOnly flag? Let's walk through it.
It starts with IEnumerable — the most basic contract. Just "give me one item