Working with Nulls in C#
Pluralsight
Course Summary
Learn how to create, check for, access, and eliminate nulls in your C# applications.
-
+
Course Description
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.
-
+
Course Syllabus
Course Overview- 1m 16s
—Course Overview 1m 16sWorking with Nullable Value Types and Strings- 30m 12s
—Introduction 1m 24s
—Course Outline 0m 59s
—Reference and Value Types Overview 3m 54s
—Using Magic Numbers for Null Value Types 9m 44s
—Introduction to Nullable Value Types with Nullable<T> 1m 29s
—Refactoring to Nullable<T> and Removing Magic Numbers 2m 57s
—C# Shorthand for Nullable Value Types 1m 34s
—Nullable Boolean Values 2m 51s
—Null and Empty Strings 1m 33s
—Checking for Null or Empty Strings 1m 48s
—Summary 1m 55sAccessing and Checking for Null Values- 29m 53sEliminating Null Reference Exceptions- 23m 50s