Nullable Reference Types
Starting from Umbraco 10 Nullable Reference Typs is enabled by default in Umbraco.
Nullable reference types is a group of features introduced in C# 8.0 that can be used to minimize the likelihood that your code causes the runtime to throw
Nullable reference types includes three features that help you avoid these exceptions, including the ability to explicitly mark a reference type as nullable:
- Improved static flow analysis that determines if a variable may be null before dereferencing it.
- Attributes that annotate APIs so that the flow analysis determines null-state.
- Variable annotations that developers use to explicitly declare the intended null-state for a variable.
To learn more about Nullable Reference Types, make sure to check out the Microsoft Documentation