---
title: "Discussion on \"Choosing Between IEnumerable<T> and IReadOnlyCollection<T> in GET endpoints\" | Hashnode"
description: "Discussion on \"Choosing Between IEnumerable<T> and IReadOnlyCollection<T> in GET endpoints\". I recently caught myself mindlessly implementing a GET API endpoint that returned an IEnumerable<T>. I've also seen this pattern repeated in many API implementations across different services. While it works, I want to walk through why using IReadOnl..."
url: "https://hashnode.com/posts/choosing-between-ienumerablet-and-ireadonlycollectiont-in-get-endpoints/6917700d743c146548fa5997"
---

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

Discussion

# [Choosing Between IEnumerable<T> and IReadOnlyCollection<T> in GET endpoints](https://quangphan.hashnode.dev/choosing-between-ienumerablet-and-ireadonlycollectiont-in-get-endpoints?utm_source=hashnode&utm_medium=feed)

I recently caught myself mindlessly implementing a GET API endpoint that returned an IEnumerable<T>. I've also seen this pattern repeated in many API implementations across different services. While it works, I want to walk through why using IReadOnl...

Nov 14, 2025 · 4 min read · quangphan.hashnode.dev  
Read the article

-   [#csharp](https://hashnode.com/tag/csharp)
-   [#net](https://hashnode.com/tag/net)
-   [#rest-api](https://hashnode.com/tag/rest-api)

## Written by

[Quang Phan](https://hashnode.com/@qphan613)

@qphan613 · Ontario, CA

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

.net dev

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
