BrandGhost
WARNING: 2 Killer C# Iterator Bugs (And How To Prevent Them)

WARNING: 2 Killer C# Iterator Bugs (And How To Prevent Them)

C# iterators are a powerful feature that leverage IEnumerable in C# as well as the yield return syntax. Iterators are lazily evaluated which can be really useful - but it can also be incredibly problematic. In this video, I'll walk through 2 scenarios that will make you think twice when you go to use the yield keyword in C# alongside your IEnumerable! Hopefully this will save you some headaches! Have you subscribed to my weekly newsletter yet? A 5-minute read every weekend, right to your inbox...
An error has occurred. This application may no longer respond until reloaded. Reload