Back to Browse

How LINQ works

1.1K views
Apr 2, 2026
18:08

LINQ is one of those features that we use every day, and every other day we face some challenges with it. And most of the time the issue is caused by LINQ lazy nature. This is a foundational video that will teach you how IEnumeable works under the hood, what compiler does to implement yield return and what practical consequences this might have. ▬▬▬▬▬▬ Connect with me 👋 ▬▬▬▬▬▬ GITHUB - https://github.com/SergeyTeplyakov X/TWITTER - https://x.com/steplyakov LINKEDIN - https://linkedin.com/in/sergeyteplyakov BLOG - https://sergeyteplyakov.github.io/Blog ▬▬▬▬▬▬ T I M E S T A M P S ⏰ ▬▬▬▬▬▬ 00:00 - Intro 01:31 - Iterator Design Pattern 03:31 - Foreach under the hood 04:14 - Iterator blocks 05:53 - How iterators work? 07:00 - Generated State Machine Under the hood 09:00 - State Machine Allocations 10:58 - Error handling in iterator blocks 12:32 - Iterator block and resource management 14:05 - IEnumerable in public API 👇 Drop your topic suggestions in the comments and let’s keep dissecting together. #dotnet #csharp #basics

Download

0 formats

No download links available.

How LINQ works | NatokHD