LINQ Sample

The LINQ sample highlights the key features of Language-Integrated Query (LINQ) queries based on standard query operators. This sample accomplishes the following tasks:

  • Lists the contents of the file system in a tree view, and lets the user search through the items in the tree view by using LINQ queries and custom extension methods.

  • Groups the contents of a directory by file extension by using the LINQ GroupBy operator.

For information about using the samples, see the following topics:

To build and deploy the sample using Visual Studio

  1. Open Windows Explorer and navigate to one of the language-specific subdirectories under the LINQ directory for this sample.

  2. Double-click the solutions (.sln) file for this sample.

  3. Press F5 to compile and run the sample.

  4. Deploy to the device or emulator.


Microsoft Visual Studio 2008 must be installed with the smart device development components. This includes the .NET Compact Framework version 3.5, which is required to build and run the sample. To compile the sample using msbuild.exe, see How to: Compile at the Command Prompt.

To install the .NET Compact Framework on the device, see How to: Install the .NET Compact Framework.

See Also

Other Resources

.NET Compact Framework