BrandGhost
C# Iterators Are AWESOME But Why I HATE Them

C# Iterators Are AWESOME But Why I HATE Them

In this video, we're going to learn how to create a lazy enumerable in C# called an iterator. An iterator is a collection of items that are evaluated only when they're accessed, instead of being computed immediately. This is a useful technique if you want to avoid expensive computations, or if you need to store data in a memory-efficient format. I'll demonstrate how to create an iterator in C#, and then use it to list all the items in a collection. Have you subscribed to my weekly newsletter y...
An error has occurred. This application may no longer respond until reloaded. Reload