'nullable' enable – Unlock the Power of C# Nullability
summary
Explains that C# nullable reference types give only design‑ and compile‑time warnings, not runtime safety, and uses flow analysis to surface issues; shows practical migration patterns: enable nullable for new projects or convert file‑by‑file starting with DTOs and low‑dependency models; demonstrates tools like Rider/ReSharper automatic migrations, value tracking and JetBrains→C# annotation conversion; warns that EF Core schema changes when nullability flips and calls the null forgiving operator an anti‑pattern.
AI-written summary · about
chapters (24)
- 0:00C# nullability intro
- 1:08Null reference exceptions
- 3:36Nullable reference types
- 7:06Flow analysis warnings
- 10:15Var and nullability
- 11:39Null forgiving operator risks
- 12:21Nullable context config
- 14:47Annotating code details
- 25:03Nullability and generics
- 26:28Migrating libraries to nullability
- 28:51Upgrading C# projects
- 32:40Migration example LocationInfo
- 36:16Redesigning code migration
- 37:21Removing null forgiving operators
- 38:45Tools for nullability migration
- 41:37JSON and EF with nullability
- 44:49Summary best practices
- 47:17Q&A nullability history
- 51:06Q&A Kotlin vs C# var
- 51:49Q&A null forgiving misuse
- 52:31Q&A migration strategies
- 53:33Q&A nullability viral nature
- 54:16Q&A partial migration reliability
- 55:38Q&A runtime null checks
related talks
59mNullability in C# 8.0
01h 06mNull & Void - Everything about Nothing in .NET
01h 01mC# 8
01h 13mNull & Void – Everything About Nothing in .NET
13mWhat's New in C# 8.0
55mLet’s catch up with C#! Exciting new features in C# 9, 10, 11 and 12!
01h 00mWhat's new in C#? Exciting new features in C# 8.0, 9.0 and 10!
59mLet’s catch up with C#! Exciting new features in C# 9, 10, 11, 12 and 13!
