Nullable reference types, featured in Microsoft’s C# 8.0 language, hold developers to a higher standard when dealing with nulls, says Microsoft’s Mads Torgersen, lead designer for the C# language.
Described by Torgersen in a recent blog post as “probably the most impactful feature of C# 8.0,” nullable reference types allow developers to make the flow of nulls explicit in their code and warns them when they do not act according to their intent. Null reference types will issue new warnings on existing code, so they are an optional feature that must be explicitly enabled. Once enabled in code, developers will have to make the code null-safe to pass the compiler.