Talk - Bringing C# nullability into existing code

Edit on GitHub

Talk abstract

The C# nullability features help you minimize the likelihood of encountering that dreaded System.NullReferenceException. Nullability syntax and annotations give hints as to whether a type can be nullable or not, and better static analysis is available to catch unhandled nulls while developing your code. What’s not to like?

Introducing explicit nullability into an existing code bases is a Herculean effort. There’s much more to it than just sprinkling some ? and ! throughout your code. It’s not a silver bullet either: you’ll still need to check non-nullable variables for null.

In this talk, we’ll see some techniques and approaches that worked for me, and explore how you can migrate an existing code base to use the full potential of C# nullability.


Bringing nullability into existing code - dammit is not the answer.pptx from Maarten Balliauw

Leave a Comment


0 responses