K1Lesson 38 of 49about 120 minutes
Safe with null
What you learn in this lesson
- explain what the question mark on a type says and what the compiler checks because of it
- recognize the most common null warnings by their number and fix them in the right place
- write short, safe code with ?., ?[], ??, ??= and the conditional assignment of C# 14
- declare properties so that they’re never unexpectedly empty
- use the exclamation mark only with a reason and protect public methods against null at run time
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