~/talk

What's new in C#? Exciting new features in C# 8 0 and 9 0

Talkat NDC Oslo 2021 · 2021-11-29..12-03· [c-sharp]
slides:none on file

C# 8–10 add concrete features and runtime requirements: nullable reference types make the compiler warn on potential nulls to reduce NullReferenceExceptions, IAsyncEnumerable with await foreach plus yield enable true asynchronous streaming of lines from a file, and record types give immutable primary-constructor objects with value equality and a built‑in deconstruct and with expression. Default interface implementations let libraries add methods without breaking users. Use Visual Studio 2019/2022 targeting .NET Core 3.0 / .NET 5 / .NET 6 depending on the C# version.

AI-written summary · about

  1. 0:00Start
  2. 6:30Deconstruct an object
  3. 8:00Tuples & Deconstruction
  4. 9:17Asynchronous Main
  5. 16:21Default Interface Implementations
  6. 17:50Shared Libraries
  7. 41:10Matching a type & attribute
  8. 42:52Pattern matching: Switch expression
  9. 45:22Pattern matching: Property pattern
  10. 45:51Add a new project
  11. 53:19Pattern matching: Tuple pattern
~/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.