LINQ, explained with sketches
LINQ is everywhere in C# - and quietly misunderstood. When does a query actually run? Why does the same collection get enumerated twice? This eBook draws the answers: the mental models behind LINQ, sketched so they stick.
- See deferred execution for what it is - why nothing runs until you enumerate, sketched step by step.
- Tell IEnumerable and IQueryable apart - and know where your query really executes: in memory or at the database.
- Avoid the classic traps: multiple enumeration, hidden allocations and when to materialise with ToList/ToArray.
.NET experts from Switzerland · Microsoft MVP & open-source contributors · sketches over jargon
The eBook is available in English only.
Shall we get in touch?
No newsletter, no ads. We'd like a personal, one-to-one conversation about your projects, your challenges, and whether we could work together.
What's inside the eBook
From deferred execution and the IEnumerable/IQueryable split to multiple enumeration and materialisation - each idea as a sketch you'll remember.
Sketch-based · quick read
-
Deferred execution
Why nothing runs yet
-
IEnumerable vs. IQueryable
In memory or at the DB
-
Streaming vs. buffering
Where/Select vs. OrderBy
-
Multiple enumeration
The hidden re-run
-
Materialisation
ToList / ToArray / ToDictionary
-
Query vs. method syntax
Two ways, one meaning
We write C# every day - and love making it click.
We're .NET experts from Switzerland, including a Microsoft MVP and open-source contributors. From advising CTOs to running .NET workshops: we love code - and even more, explaining it so a whole team levels up.
Deferred execution
SketchA query is a recipe, not a result. See exactly when it runs - and why that single idea explains most LINQ surprises.
Multiple enumeration
SketchThe same IEnumerable, enumerated twice, quietly does the work twice. Spot it in a sketch and you stop writing the bug.
IEnumerable vs. IQueryable
SketchOne runs in your process, the other translates to SQL. Knowing which is which is the difference between fast and accidentally-O(n).
An eBook won't turn LINQ into magic. But the right mental model turns "it just works" into "I know exactly why" - and stops a class of subtle bugs before they ship.
Ready to make LINQ click?
Grab the eBook and get the mental models behind LINQ - sketched so they stay with you.
Download the eBookPrefer to write to us directly?
Let's Build Something Great Together
Have a question or want to discuss a project? We'd love to hear from you. Fill out the form below and we'll get back to you as soon as possible.
You can also reach us directly at [email protected]
