Skip to content
ballmüllersolutions logo Send an email Call us

Lesson 36 of 49about 180 minutes

Module 1.5 · Expressive code

LINQ: grouping, and when a query really runs

What you learn in this lesson

  • group by one or several properties with GroupBy and count and add up per group
  • summarize results with ToDictionary, CountBy, Distinct and DistinctBy
  • explain that a LINQ query runs only when it’s looped through, and anew every time
  • put ToList in the right place: before changing a list and before a result is needed more than once
  • determine ISO weeks by ISO 8601, across the turn of the year too

This lesson belongs to course K1

You will see this lesson's text and video once you have bought the course. The goals above show what you learn here.

€149.00

incl. VAT, one-time payment

Access to all of the course's lessons with their exercises, solutions and videos on this site, for 24 months from the purchase. A self-study course: no tutoring, no exams or grading by us, and no certificate.

Sign in and buy

To course K1

To the overview: K1 Getting started: programming with C#