Featured resource
2026 Tech Forecast
2026 Tech Forecast

Stay ahead of what’s next in tech with predictions from 1,500+ business leaders, insiders, and Pluralsight Authors.

Get these insights
  • Course

Working with Nulls in C# 9

Unexpected null values and NullReferenceExceptions can be a constant source of bugs resulting in wasted development time and out-of-hours support callouts. This course will teach you how to reduce null related errors in your code.

Advanced
2h 32m
(87)

Created by Jason Roberts

Last Updated Mar 03, 2022

Course Thumbnail
  • Course

Working with Nulls in C# 9

Unexpected null values and NullReferenceExceptions can be a constant source of bugs resulting in wasted development time and out-of-hours support callouts. This course will teach you how to reduce null related errors in your code.

Advanced
2h 32m
(87)

Created by Jason Roberts

Last Updated Mar 03, 2022

Get started today

Access this course and other top-rated tech content with one of our business plans.

Try this course for free

Access this course and other top-rated tech content with one of our individual plans.

This course is included in the libraries shown below:

  • Core Tech
What you'll learn

Making use of an object when it is not supposed to be null can result in unexpected exceptions that can cause your program to crash. These unexpected null related errors may cause data loss or corruption, system downtime, and unhappy users. In this course, Working with Nulls in C# 9, you’ll gain the ability to reduce the likelihood of getting null related exceptions in production. First, you’ll explore which objects can be set to null and how to check for null values. Next, you’ll discover a design pattern to help eliminate null related exceptions. Finally, you’ll learn how to opt-in to the ability to create non-nullable reference types that enable the compiler to detect null-related problems before you even run your application. When you’re finished with this course, you’ll have the skills and knowledge of nulls in C# needed to reduce null related errors in your production code.

Working with Nulls in C# 9
Advanced
2h 32m
(87)
Table of contents

About the author
Jason Roberts - Pluralsight course - Working with Nulls in C# 9
Jason Roberts
71 courses 4.4 author rating 10721 ratings

With over 15 years experience, Jason Roberts is a Microsoft .NET MVP, freelance developer, and author.

Get started with Pluralsight