Home
C# / C Sharp
2D Graphics
Class Interface
Collections Data Structure
Components
Data Types
Database ADO.net
Date Time
Design Patterns
Development Class
Event
File Stream
Generics
GUI Windows Form
Internationalization I18N
Language Basics
LINQ
Network
Office
Reflection
Regular Expressions
Security
Services Event
Thread
Web Services
Windows
Windows Presentation Foundation
XML
XML LINQ
GroupBy « LINQ « C# / C Sharp
C# / C Sharp
LINQ
GroupBy
1.
Use Group By
2.
GroupBy partitions a list of numbers by their remainder when divided by 5.
3.
uses group by to partition a list of products by category.
4.
uses group by to partition a list of each customer's orders, first by year, and then by month.
5.
uses GroupBy to partition trimmed elements of an array using a custom comparer