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 for, access, and eliminate nulls in your C# applications.

Intermediate
1h 25m
(232)

Created by Jason Roberts

Last Updated Aug 19, 2019

Course Thumbnail
  • Course

Working with Nulls in C#

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

Intermediate
1h 25m
(232)

Created by Jason Roberts

Last Updated Aug 19, 2019

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're going to learn about the different ways that null values pop up in C# code and how to deal with them. First, you're going to learn the fundamentals of why you get null values and the difference between value and reference types. Next you'll learn how you can use the various C# operators to check for and manipulate nulls. Finally, you'll learn how to think about nulls at a higher abstraction level in your object-oriented code. 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 with fewer lines of code, and how to implement the Null Object pattern to remove the need to write repetitive null checking code.

Working with Nulls in C#
Intermediate
1h 25m
(232)
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