Video How to: Writing Queries in C# (LINQ)
Language Integrated Query (LINQ) makes a query a first-class language construct in Visual C#. You can write queries against strongly typed collections of objects by using language keywords and familiar operators. You do not have to learn a different query language for each type of data source: SQL databases, XML documents, various Web services, and so on.
This video shows you the C# language features that enable you to write LINQ query expressions. The following tasks are included in the process:
Creating an in-memory data source.
Creating the query.
Executing the query.
Modifying the query.
The Visual C# Help includes the code and the steps that are demonstrated in this video. See Walkthrough: Writing Queries in C# (LINQ).