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: More Chapters

Joseph Albahari, Ben Albahari

Download C# 7.0 in a Nutshell samples
Download C# 6.0 in a Nutshell samples

This download supplements LINQPad's inbuilt Nutshell samples with code listings from more chapters 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 - and for refreshing your memory on C#.

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.

LINQ in Action

Fabrice Marguerie, Steve Eichert, Jim Wooley  Read reviews

Download full code listings into LINQPad

Written for C# and VB developers of all levels, LINQ in Action ramps up quickly from zero knowledge at first to a substantial depth at the end. In it, you'll explore the key language features like lambda expressions, extension methods, and anonymous data types that make LINQ possible. LINQ in Action is a very practical book, that anchors each new idea with running code, showing you how to create LINQ applications with Visual Studio, and addressing the emerging best practices.

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# 5 Interactive Tutorial, updated for Framework 4.5 RTM

Joseph Albahari

Download into LINQPad

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


StreamInsight

Microsoft StreamInsight Samples

Microsoft Corporation

By downloading the Microsoft StreamInsight Samples for Linqpad you agree to the terms of the Microsoft Software License Terms.

Download samples for StreamInsight 2.1
Download samples for StreamInsight 2.0/1.2/1.1

These samples demonstrate querying Microsoft StreamInsight (TM) data sources in LINQPad.

Before running these samples, download the StreamInsight driver by adding a connection, clicking 'View More Drivers' and selecting the Microsoft StreamInsight driver. You will also need to download and install the correct version of StreamInsight for your driver (otherwise a FileNotFoundException will be thrown).

StreamInsight is Microsoft's Complex Event Processing technology to help businesses derive better insights by correlating event streams from multiple sources with near-zero latency. Learn more


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