~/talk

Bringing C# nullability into existing code - dammit is not the answer!

Talkat NDC Porto 2023 · 2023-10-16..10-20· [c-sharp, developer-experience]
slides:none on file

Nullable reference types give compile‑time flow analysis, not runtime safety, and migrating an old C# codebase needs design changes not just sprinkled `?` and `!`. Start with central DTOs, use Visual Studio value tracking and ReSharper’s migrate to nullable autofixes, convert JetBrains annotations if present, and prefer attributes like AllowNull/MaybeNull/NotNullWhen or the new required keyword. Beware: enabling nullability can alter EF Core migrations and database schemas.

AI-written summary · about

  1. 0:00Nullable reference types intro
  2. 7:37How nullable refs work
  3. 13:40Internals of nullable refs
  4. 23:38Annotating code with attributes
  5. 37:01Nullable refs in generics
  6. 40:56Third-party libraries handling
  7. 43:02Migrating existing code
  8. 57:24Summary and best practices
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.