---
title: "Discussion on \"What to be Wary of With Iterators and Collections in C#\" | Hashnode"
description: "Discussion on \"What to be Wary of With Iterators and Collections in C#\". Which approach is better: an iterator or a materialized collection? In this article we explore common pitfalls with BOTH of these different approaches!"
url: "https://hashnode.com/posts/what-to-be-wary-of-with-iterators-and-collections-in-c/63f70875ebf39c4859ecdc5b"
---

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

Discussion

# [What to be Wary of With Iterators and Collections in C#](https://hashnode.devleader.ca/what-to-be-wary-of-with-iterators-and-collections-in-c?utm_source=hashnode&utm_medium=feed)

Which approach is better: an iterator or a materialized collection? In this article we explore common pitfalls with BOTH of these different approaches!

Feb 23, 2023 · 10 min read · hashnode.devleader.ca  
Read the article

-   [#csharp](https://hashnode.com/tag/csharp)
-   [#programming-blogs](https://hashnode.com/tag/programming-blogs)
-   [#programming-tips](https://hashnode.com/tag/programming-tips)
-   [#coding](https://hashnode.com/tag/coding)
-   [#tutorial](https://hashnode.com/tag/tutorial)

## Written by

[Dev Leader](https://hashnode.com/@devleader)

@devleader · Seattle, Washington

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

Bridging the gap between development and leadership roles

I'm a software engineering professional with over a decade of hands-on experience creating software and managing engineering teams. I graduated from the University of Waterloo in Honours Computer Engineering in 2012. I started blogging at https://www.devleader.ca in order to share my experiences about leadership, managing engineers, and 20+ years of programming. I'm the author of Dev Leader Weekly, which you can find here: https://devleaderweekly.substack.com And I create YouTube videos here: https://www.youtube.com/@DevLeader

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
