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

Lesson 37 of 49about 120 minutes

Module 1.5 · Expressive code

Pattern matching: checking values by their shape

What you learn in this lesson

  • check for type, null, ranges and combinations of and, or and not with is
  • write a switch expression with type patterns, when and the discard case _, and read the compiler’s messages about order and exhaustiveness
  • check several properties of an object at once with property patterns
  • take apart a program’s arguments with list patterns
  • teach the Kladde commands on the command line, with exit code 2 for wrong input

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#