~/talk

The top 10 best new features in C# version 6 to 9

Talkat NDC London 2021 · 2021-01-25..01-29· [c-sharp]
slides:none on file

A concise run‑down of the top 10 C# 6–9 changes with concrete effects: string interpolation replaces messy concatenation; out var and inline deconstruction remove predeclared temporaries; default interface methods let interfaces ship a fallback implementation; discards use _ and combine with throw expressions; null‑conditional ?., null‑coalescing assignment ??= and nullable reference types (enable in the csproj; compile‑time warnings) tighten null handling; named/value tuples and pattern matching + switch expressions simplify multi‑value returns; record types generate immutable classes, equality and with‑expressions automatically.

AI-written summary · about

  1. 0:00Intro
  2. 1:13I want to do a talk about the best new C# features...
  3. 2:17I definitely need 10!
  4. 5:58The top 10 best new features in C# version 6 to 9
  5. 6:32No. 10 String Interpolation
  6. 9:07Default Interface Methods
  7. 9:26public interface EmalClient Task SendEmail(Address from Address to string subject, string body)
  8. 9:42Shouldn't we use templates for the e-mails?
  9. 12:34Out Variables
  10. 14:28Expression Bodied Members
  11. 18:39Discards
  12. 27:26No. 5 Null-Conditional Operator & Null-Coalescing Assignment
  13. 29:12Nullable Reference Types
  14. 37:30Named Tuples
  15. 39:57C# 7 Value Tuples
  16. 40:44C# Tuples vs Value Tuples C# Tuples -immutable ref types with properties Value Tuples-mutable value types with fields
  17. 44:29Pattern matching & Switch expressions
  18. 51:36Record Types
  19. 52:56and then we add equality checking...
  20. 55:51favorite features!
  21. 56:16Is C# getting too complicated?
~/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.