Skip to main content

101 LINQ Samples for Visual C#


Language-Integrated Query (LINQ) is a set of features introduced in Visual Studio 2008 that extends powerful query capabilities to the language syntax of C# and Visual Basic. MSDN has a popular set of samples that demonstrate various aspects of LINQ, samples for both Visual C# and Visual Basic. These cover a range of areas, including restriction operators, grouping operators, aggregate operators, and a lot more.

We've moved the C# LINQ samples to the MSDN Samples Gallery and added the features that the Gallery offers, including better navigation, better browsing, and the Gallery's "Copy Code" feature.

The Visual Basic LINQ samples are still in their old location, but we are working on getting those moved as well.