Null & Void - Everything about Nothing in .NET
summary
Step-by-step, the session shows that C# nullable reference types are compile-time annotations (implemented as attributes with context codes 0/1/2), demonstrates reading them via reflection using NullabilityInfoContext, and inspects Roslyn/IL output to prove there’s no runtime type change. Demos cover System.Text.Json’s respectNullableAnnotations option, F# 9 interop, a source-analyzer+fixer workflow and PolySharp source-generator for older targets, the null-forgiving operator ! and the null object pattern, and recommends turning nullable warnings into errors in CI to enforce safety.
AI-written summary · about
chapters (17)
- 0:00Introduction
- 3:34Understanding void
- 5:36Nullable reference types
- 11:31Value types vs reference types
- 15:01Ref keywords and nullability
- 18:42Design and contract patterns
- 21:08Compiler mechanics
- 24:41Defaults and arrays
- 28:45Handling null with operators
- 35:18Configuring nullable contexts
- 38:27JSON serialization and interop
- 42:58Suppression and generated code
- 47:21Generics and nullability
- 50:59Advanced attributes
- 53:43Reflection and analyzers
- 57:26Adoption strategies
- 1:00:45Null-avoidance patterns
related talks
01h 13mNull & Void – Everything About Nothing in .NET
59mNullability in C# 8.0
57m'nullable' enable – Unlock the Power of C# Nullability
01h 01mC# 8
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!
01h 03mWhat's new in C#? Exciting new features in C# 8.0, 9.0 and 10!
