Chapter 4. Grouping and Joining Data
Goals of this chapter:
• Define the capabilities of LINQ joining and grouping features.
• Demonstrate grouping and joining data sources.
• Discuss the best practices and pitfalls to avoid when grouping and joining data sources.
The main goal of this chapter is to define the capabilities of LINQ to Objects’ extensive grouping and joining features. Best practices and the most likely pitfalls to be avoided when grouping and joining data sources are discussed. By the end of this chapter you will be well-versed in how to write queries that group input data into subcollections and how to join data in one collection with matching data from another.
How to Group Elements
Grouping in LINQ enables you to return partitioned ...
Get LINQ to Objects Using C# 4.0 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.