Chapter 21
Querying in-memory data by using query expressions
After completing this chapter, you will be able to:
Define Language-Integrated Query (LINQ) queries to examine the contents of enumerable collections.
Use LINQ extension methods and query operators.
Explain how LINQ defers evaluation of a query and how you can force immediate execution and cache the results of a LINQ query.
You’ve now met most of the features of the C# language. However, so far I have glossed over one important aspect of the language that will likely be used by many applications: the support that C# provides for querying data.
You’ve seen that you can define structures and classes to model data and that you can use collections and arrays to temporarily store data ...
Get Microsoft Visual C# Step by Step, 10th Edition 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.