LINQ's ________ method is used to group query results.

  • Aggregate
  • Distinct
  • Group
  • GroupBy
The correct answer is "GroupBy". The GroupBy method in LINQ is used to group query results based on a specified key. It allows you to perform operations on each group separately, such as aggregation or filtering. This is commonly used for grouping data in LINQ queries.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *