Writing your own LINQPad Sample Library is easy! Find out how.
Blocked by a proxy or firewall? Click here to download these sample libraries from a web browser.

LINQPad-Enabled Books

C# in a Nutshell

Download C# 12 in a Nutshell samples for LINQPad 8 (entire book)
Download C# 10 in a Nutshell samples for LINQPad 7+ (entire book)
Download C# 9.0 in a Nutshell samples for LINQPad 6+ (entire book)
Download C# 8.0 in a Nutshell samples for LINQPad 6+ (entire book)
Download C# 7.0 in a Nutshell samples for LINQPad 5

This download supplements LINQPad's inbuilt Nutshell samples with code listings from C# in a Nutshell - including the entire language section, Framework Fundamentals, Collections, Dynamic Programming, Concurrency, Asynchrony, Parallel Programming and the Roslyn Compiler. This is ideal for experimenting as you read the book or for refreshing your memory.

C# in Depth

Jon Skeet

Download full code listings into LINQPad

Jon Skeet's acclaimed C# in Depth provides a uniquely insightful look into the tricky areas and dusty corners of C#. The samples are from the third edition, which has been thoroughly revised to cover the new features of C# 5. With a single click, you can load all the samples into LINQPad, and interactively experiment as you read Jon's crystal clear explanations of "behind the scenes" issues.

Thinking in LINQ

Sudipta Mukherjee

Download full code listings into LINQPad

Using the familiar "recipes" approach, Thinking in LINQ shows you how to approach building LINQ-based solutions, how such solutions are different from what you already know, and why they're better. The recipes cover a wide range of real-world problems, from using LINQ to replace existing loops, to writing your own Swype-like keyboard entry routines, to finding duplicate files on your hard drive. The goal of these recipes is to get you "thinking in LINQ," so you can use the techniques in your own code to write more efficient and concise data-intensive applications.

More Sample Libraries

Asynchrony in C# - Interactive Tutorial (updated for .NET Framework 4.6 -> .NET 8)

Joseph Albahari

Download into LINQPad

Experience the magic of asynchronous programming in C# with this interactive walkthough. Covering the fundamentals of why we need asynchronous functions, to writing your own awaitable types, this tutorial is an easy and enjoyable way to learn about asynchronous functions in C#.

Microsoft Reactive Extensions Samples

Microsoft Open Technologies, Inc.

Download Rx samples

Reactive Extensions (Rx) is an open-source library for composing asynchronous and event-based programs using observable sequences and LINQ-style query operators. Using Rx, developers represent asynchronous data streams with Observables, query asynchronous data streams using LINQ operators, and parameterize the concurrency in the asynchronous data streams using Schedulers. Simply put, Rx = Observables + LINQ + Schedulers.

For more information, see the documentation or get the source code.


Tx (LINQ to Traces) Samples

Microsoft Open Technologies, Inc.

Download Tx samples

The Tx samples show how to mix Reactive Extensions and LINQ to Objects to create efficient queries on raw logs/traces, such as ETW, .blg files from PerfMon and Windows Event Logs

For more information, check out the Tx documentation.


Samples for YOW Night 2013 - Programming with Purity

Joseph Albahari

Download into LINQPad


Samples for Perth Night 2014 - Async Tips and Tricks

Joseph Albahari

Download into LINQPad


Samples for DDD Perth 2015 - Why Pointers Matter

Joseph Albahari

Download into LINQPad


Samples for NDC Sydney 2016 - Future-Oriented Programming in C#

Joseph Albahari

Download into LINQPad


Samples for Perth .NET 2016 - Rolling Your Own

Joseph Albahari

Download into LINQPad


Samples for NDC Sydney 2017 - Pushing C# to the limit

Joseph Albahari

Download into LINQPad


Samples for NDC/YOW - Writing a Neural Net from Scratch

Joseph Albahari

Download into LINQPad


Samples for 'What's new in C# 9' webcast

Joseph Albahari

Download into LINQPad (January presentation)
Download into LINQPad (February presentation)


Samples for online presentation with SSW (April 2021)

Joseph Albahari

Download into LINQPad


Samples for Perth .NET Presentation (February 2022)

Joseph Albahari

Download into LINQPad


SumTypes - source code and samples (NDC Presentation, October 2022)

Joseph Albahari

Download into LINQPad