With the null coalescing operator it is now easier than ever before to check your objects for null values. In this video you will learn what the double question marks (??) do and how to use them to your advantage. We will see how to assign a different value if null, throw an exception and more!

🔗 Links
Null Coalescing Operator Docs: https://docs.microsoft.com/dotnet/csharp/language-reference/operators/null-coalescing-operator

⏱ Timestamps
00:00 - Intro
00:18 - Sample App Outline
01:24 - Replace Null Check with Null-Coalescing Operator ??
04:00 - Null-Coalescing To Throw Exceptions
07:00 - Null Coalescing Compound Assignment ??=
09:44 - Combine with Null Conditional Operator

#csharp #nullcoalescing #dotnet #null #nullcheck

Understanding C# Null Coalescing Operator (?? and ??=)
1.30 GEEK