BrandGhost
Intro To Yield In C# - Beginner Examples In Action

Intro To Yield In C# - Beginner Examples In Action

The yield keyword is a spicy one in C#. That's because when we use it within a method that returns IEnumerable, we get this fancy thing called an "iterator". Yeah. It's fancy as heck. But it can also be really confusing to understand, which is exactly why I made this video to help you out. Let's step through some code so you can see the behavior of the yield keyword and how it works inside of iterators!
An error has occurred. This application may no longer respond until reloaded. Reload