Hidden Dangers of Iterators & Collections in C#
February 20, 2023
• 1,087 views
dotnet coredotnet core tutorialdotnet core c#c# dotnet coreenumerableenumerablesienumerableenumerables c#c# ienumerable foreachc# iteratorc# iteratorsc# iterationc# foreachc# enumerable foreachforeach ienumerableforeach ienumerable c#c# collectionsc# collections tutorialienumerable tutorialhow do enumerables workiteratoriteratorsiterators c#yield returnyield return c#c# yield returnpitfallsforeachienumerable vs ilist
Enumerables and iterators are a confusing topic for many people even if they aren't new to C#. In this video, I walk through code examples based on patterns observed in industry over the last decade. While these examples have many solutions (beyond what I mention in the video), I wanted to discuss them to illustrate based on real world misunderstandings of iterators and collections.
Here's the companion blog post for this video:
https://www.devleader.ca/2023/02/22/beware-of-these-iterator-and-c...
