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#

Learn how to create, check, access, and eliminate nulls in your C# applications.

Intermediate
2h 9m
(169)

Created by Jason Roberts

Last Updated Aug 13, 2021

Course Thumbnail
  • Course

Working with Nulls in C#

Learn how to create, check, access, and eliminate nulls in your C# applications.

Intermediate
2h 9m
(169)

Created by Jason Roberts

Last Updated Aug 13, 2021

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

Unexpected null values and NullReferenceExceptions can be a constant source of bugs resulting in wasted time and out of hours support callouts. In this course, Working with Nulls in C#, you'll learn about the different ways that null values pop up in C# code and how to deal with them. First, you'll dive into the fundamentals of why you get null values and the difference between value and reference types. Next, you'll explore how you can use the various C# operators to check for and manipulate nulls. Then, you'll see how to think about nulls at a higher abstraction level in your object-oriented code. Finally, you'll discover how the features introduced in C# 8 can help even more by allowed non-nullable reference types. By the end of this course, you'll understand the different types of objects in C#, how to correctly create nullable value types, how to use C# operators to work with nulls in fewer lines of code, how to implement the Null Object pattern, and how to use nulls in C# 8.

Working with Nulls in C#
Intermediate
2h 9m
(169)
Table of contents

About the author
Jason Roberts - Pluralsight course - Working with Nulls in C#
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