Maarten Balliauw presents a practical guide to migrating C# codebases to nullable reference types, a compile-time safety feature introduced in C# 8. The session covers migration strategies like the Boy Scout Rule (enabling nullability file-by-file), warns against overusing the null-forgiving operator, and addresses gotchas like Entity Framework Core's automatic schema updates. The approach emphasizes gradual adoption starting from central classes with few dependencies, using IDE tools for flow analysis, and accepting null as part of the codebase rather than trying to eliminate it entirely.

6m read timeFrom blog.jetbrains.com
Post cover image
Table of contents
Watch the full presentationIt’s not for runtime safetyThe Boy Scout Rule for migrationThe temptation of the dammit operatorEmbracing null, not fighting itEntity Framework’s surprisePractical tools for the journeyThe takeaway

Sort: