What is the purpose of the GroupBy operator in LINQ?
A. Groups the elements of a sequence based on a key
B. Orders the elements of a sequence based on a key
C. Filters a sequence based on a predicate
D. Projects each element of a sequence
Answer: Option A
Join The Discussion