Much Ado about Nothing: A C# play in two acts. Act 2
summary
Walks through building a survey simulator to show how C# 8 nullable reference types changes APIs, compiler flow analysis, and migration choices: enabling nullable context in project files, using question-mark annotations for fields that can be missing, checking for null before dereference, and using the null-forgiving operator when interop with AutoMapper or unannotated NuGet packages forces a temporary exception. Demonstrates running the app, seeing compiler warnings, and running it with no NREs while outlining sidecar annotations for older libraries.
AI-written summary · about
chapters (16)
- 0:00Introduction
- 6:05Survey question
- 8:18Inaudible context
- 13:32Trust but verify
- 15:08Adding questions
- 18:53Adding answers
- 22:07Running the survey
- 32:22Nullable Reference Types
- 35:25Existing Code
- 39:16GetValueDefault
- 39:52String
- 40:42String overload
- 43:10Question
- 48:58Directives
- 50:33Default constructor
- 50:59Automapper
related talks
37mC# 8 and Beyond
59mBringing C# nullability into existing code - dammit is not the answer!
56mC# 8 and Beyond
56mChange your habits: Modern techniques for modern C#
54mC# 8 and Beyond
01h 00mWhat's new in C#? Exciting new features in C# 8.0, 9.0 and 10!
47mExploring C# 8: The Deep Dive
55mWhat's New in C# 8
