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.
Grouping in LINQ enables you to return partitioned ...