How do you adopt NRTs safely in a large existing codebase?
Short answer
Enable it gradually (per-file #nullable enable or project-wide with warnings-as-messages first), fix real warnings, and avoid blanket ! suppressions that mask bugs.
Advertisement
AModel answer
Enable it gradually (per-file #nullable enable or project-wide with warnings-as-messages first), fix real warnings, and avoid blanket ! suppressions that mask bugs.
#nullable enable // start file-by-fileReal-world example
A team turns NRTs on module by module so the warning load stays manageable.