Learn coding practices to help prevent the occurrence of NullReferenceException.
Learning objectives
In this module, you will:
- Learn how to configure the nullable context of your C# project or code.
- Use a nullable enabled context to perform automatic static flow analysis.
- Understand the different ways in which you can declare nullable types.
- Learn how and when to use various null-related C# operators:
- null-forgiving (
!) operator - null-coalescing (
??) operator - null-conditional (
?.) operator
- null-forgiving (
Leave a Reply