BitSpire
English
Free eBook · C# / LINQ

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.

Get the free eBook

Instant download - no email or sign-up required.

Download the eBook

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.

We never share your data. More in our privacy policy

Inside the eBook

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
Preview page from the eBook: the Where and Take operators, each shown as a before/after sketch with a short C# example
A peek inside the eBook
  1. Deferred execution

    Why nothing runs yet

  2. IEnumerable vs. IQueryable

    In memory or at the DB

  3. Streaming vs. buffering

    Where/Select vs. OrderBy

  4. Multiple enumeration

    The hidden re-run

  5. Materialisation

    ToList / ToArray / ToDictionary

  6. Query vs. method syntax

    Two ways, one meaning

Why BitSpire

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

Sketch

A query is a recipe, not a result. See exactly when it runs - and why that single idea explains most LINQ surprises.

Multiple enumeration

Sketch

The same IEnumerable, enumerated twice, quietly does the work twice. Spot it in a sketch and you stop writing the bug.

IEnumerable vs. IQueryable

Sketch

One 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 eBook

Get In Touch

Prefer to write to us directly?

You talk directly to the people who will write your code.

  1. You get in touch: We do our best to reply within 24 hours.
  2. We get to know each other: 30 minutes. You talk, we ask. No pitch.
  3. We decide together: How to move forward, or honestly, that we're not the right fit.
125 / 2000

A few sentences are enough. What's holding you back today, is there a deadline?

We only use your details to reply to you.

Rather talk directly? 30 minutes on Google Meet with Steven Giesel.

Pick a time
Or email us at contact@bitspire.ch