Skip to content

Conversation

@bigboybamo
Copy link
Contributor

@bigboybamo bigboybamo commented Feb 3, 2026

Summary

Added definition class for Student

Fixes #51434


Internal previews

📄 File 🔗 Preview link
docs/csharp/linq/how-to-query-collections.md docs/csharp/linq/how-to-query-collections

@bigboybamo bigboybamo requested review from a team and BillWagner as code owners February 3, 2026 17:47

The following example shows how to use a named record `Student` to store merged data from two in-memory collections of strings that simulate spreadsheet data in .csv format. The ID is used as the key to map students to their scores.

```csharp
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is actually a record, and we should be able to include it as a snippet from the file in ./snippets/How-to-collections/Program.cs at line 273.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@BillWagner I've updated the PR now

Removed the definition of the Student class from the documentation.
Added code snippets for Student record and collection population.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community-contribution Indicates PR is created by someone from the .NET community. csharp-linq/subsvc dotnet-csharp/svc

Projects

None yet

Development

Successfully merging this pull request may close these issues.

This article needs to show the definition of the Student class.

2 participants