Skip to content
Go back

Talk - Bringing C# nullability into existing code

Edit page

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.

Slides

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

Edit page
Share this post on:

Previous Post
Time for a change... Moving from JetBrains to Duende Software
Next Post
Test-Driving Windows 11 Dev Drive for .NET