LINQ (Language Integrated Query) is the most important new feature of C# 3.0 and .NET 3.5. LINQ integrates query syntax inside the C# programming language and makes it possible to access different data sources with the same syntax. LINQ makes this possible by offering an abstraction layer.
This chapter gives you the core foundation of LINQ and the language extensions for C# 3.0 that make the new features possible. The topics of this chapter are:
- Traditional queries across objects using List<T>
- Extension methods
- Lambda expressions
- LINQ query
- Standard query operators
- Expression trees
- LINQ providers.