---
title: "Discussion on \"How .Net breaks Liskov Substitution Principle and Solves it at the same time\" | Hashnode"
description: "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<T> has an IsReadOnly flag? Let's walk through it.\nIt starts with IEnumerable<T> — the most basic contract. Just \"give me one item"
url: "https://hashnode.com/posts/how-net-breaks-liskov-substitution-principle-and-solves-it-at-the-same-time/6a8f204c307a8ab302c82140"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How .Net breaks Liskov Substitution Principle and Solves it at the same time](https://blog.arishahmad.in/how-net-breaks-liskov-substitution-principle-and-solves-it-at-the-same-time?utm_source=hashnode&utm_medium=feed)

Ever traced the .NET collection hierarchy and wondered why ICollection<T> has an IsReadOnly flag? Let's walk through it. It starts with IEnumerable<T> — the most basic contract. Just "give me one item

Aug 26 · 2 min read · blog.arishahmad.in  
Read the article

-   [#csharp](https://hashnode.com/tag/csharp)
-   [#lsp](https://hashnode.com/tag/lsp)
-   [#ienumerable](https://hashnode.com/tag/ienumerable)
-   [#icollection](https://hashnode.com/tag/icollection)
-   [#ilist](https://hashnode.com/tag/ilist)

## Written by

[Arish Ahmad](https://hashnode.com/@ArishAhmad)

@ArishAhmad

  
[View profile](https://hashnode.com/@ArishAhmad)

Go Beyond! Plus Ultra!

Software engineer working in Go. I write deep dives on Go internals and distributed systems, the goroutine scheduler, channel patterns, and what it takes to build reliable backend infrastructure. Currently going deep on distributed systems, AWS, and consensus.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
