The ________ extension method in LINQ is used for aggregating data.

  • Aggregate
  • Count
  • GroupBy
  • Sum
The correct answer is "Sum". In LINQ, the Sum extension method is used for aggregating numeric data. It calculates the sum of all the values in a collection or the sum of a specific property of elements in the collection. This is commonly used for calculating totals or subtotals.
Add your answer
Loading...

Leave a comment

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