~/talk

What's new in C# 11

Talkat NDC London 2023 · 2023-01-23..01-27· [c-sharp]
slides:none on file

C# 11 adds concrete changes with examples and compiler demos: raw string literals let you embed content without escapes by using n+1 quotes, ignore the initial newline and trim indentation; list patterns compile into length/index checks and support a single range capture; utf‑8 literals produce ReadOnlySpan<byte>; required members enforce init-time non‑null with SetsRequiredMembers to silence constructors; static abstract members enable generic math and async factory patterns; the controversial parameter null checking pulled feature is removed after community backlash; demos use Roslyn, Visual Studio and SharpLab.

AI-written summary · about

  1. 0:00Start
  2. 0:05What's new in C#11
  3. 0:44Parameter null checking
  4. 1:51Raw string literals
  5. 11:49List patterns
  6. 21:06UTF-8 string literals
  7. 27:49Static Abstract Interface Members
  8. 35:02Generic Attributes
  9. 35:54Auto default structs
~/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.