Referenced Namespaces

The examples in this chapter will use the System.Linq, System.Collections, System.Collections.Generic, and System.Data.Linq namespaces. Therefore, you should add the following using directives to your code if they are not present:

using System.Linq;
using System.Collections;
using System.Collections.Generic;
using System.Data.Linq;

In addition to these namespaces, if you download the companion code, you will see that I have also added a using directive for the System.Diagnostics namespace. This will not be necessary if you are typing in the examples from this chapter. It is necessary in the companion code due to some housekeeping code I have added.

Get Pro LINQ: Language Integrated Query in C# 2008 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.