Episode

Nullability and Null Operators in C#

with Leslie Richardson, Jeremy Clark

Nullability and null operators were added to C# recently. Jeremy discusses the safeguards that nullability provides as well as the problems you still need to watch out for.

Chapters

  • 00:00 - Introduction
  • 02:20 - Null reference exception demo
  • 03:50 - Enabling nullability
  • 08:10 - Thread safety and null references
  • 09:10 - Using null conditional operators
  • 10:30 - Tasks and continuations
  • 11:30 - Using null forgiving operator
  • 14:15 - Using null coalescing operator
  • 17:05 - Combining operators
  • 20:50 - Wrap-up

Developer
Visual Studio
C#

Have feedback? Submit an issue here.