Hooked on LINQ

Hooked on LINQ - Developers' Wiki
for .NET Language Integrated Query

Companion book for this site
LINQ to Objects Using C# 4.0:
Using and Extending LINQ to Objects and Parallel LINQ (PLINQ)
Quick Search

Advanced Search »
If you own the book on LINQ to Objects and want to follow the examples used throughout the book, download the sample application. This is currently tested with Visual Studio 2010 Beta 2. More information about the book can be found here.

Edit

View the Samples Online

All of the Listings and console outputs can be seen of this wiki. Each chapter link here shows all of the code listings in the book. Use the Table of Contents at the top of each page to help you navigate.

Chapter 1 Code Listings and Console Output
Chapter 2 Code Listings and Console Output
Chapter 3 Code Listings and Console Output
Chapter 4 Code Listings and Console Output
Chapter 5 Code Listings and Console Output
Chapter 6 Code Listings and Console Output
Chapter 7 Code Listings and Console Output
Chapter 8 Code Listings and Console Output
Chapter 9 Code Listings and Console Output


These pages were generated using the sample application, and will be updated from time to time. The execution times are based upon my machine, and captured to give you an indication only of relative timings - when you run these samples, the times WILL be different!


Edit

Download the Sample application

Instructions:

1. Download the sample application.
2. Create a folder of your choice and unzip the contents of the downloaded zip file. The Solution file is at the root of the zip file, unzip it into a folder.
3. To run the parallel examples for chapter 9, download the allCountries.txt file (also zipped) from here; Unzip and place this folder in the Data folder below where the sample application runs (normally bin\debug\data).


Downloads:

LINQ to Objects using C# 4.0 Samples (Version 1.1 for Visual Studio 2010 Beta 2).


Edit

Getting Visual Studio 2010 for free

Visual Studio 2010 is still in beta. During this time you can download it for free at this location.

When it is released, you will still be able to download the Express Edition (capable of running all the samples provided). I'll post that link when it is released.

Edit

Geonames files

The examples using the Paralell LINQ extensions use the AllCountries.txt file from http://www.geonames.org as a data-source (I needed something big!). It is not included in the main sample application to avoid lumping in a 700MB file! Download it separately from the following locations and inzip it into your bin\debug\data folder wherever you unzip and execute the sample application from.


http://download.geonames.org/export/dump/allCountries.zip

Edit

Getting the book

You can read it now as a Rough-Cut book on Safari - Rough Cut - LINQ to Objects using C# 4.0 (including PLINQ)

or pre-order it from Amazon (due early 2010 when Visual Studio 2010 is released) -

If you would like to comment on this page, click on the Discuss button located on the top-right of each page. Feel free to edit any mistakes or omissions you find. If you have an objection or find in-appropriate content then contact the administrator. This website is not affiliated with Microsoft®, all content and opinions are those of the specific author and some advice, solutions and article may contain unintentional errors - please use care. Powered by ScrewTurn Wiki version 2.0.33. Some of the icons created by FamFamFam.