~/talk

C# 7

Talkat NDC London 2018 · 2018-01-15..01-19· [dotnet]
slides:none on file

Walks through concrete C# 7 features with examples and tradeoffs: value tuples as mutable structs that avoid heap allocation for returning multiple values (min/max example), element names persisted in metadata, and a NodaTime extension showing deconstruct for year/month/day and constructor field assignment. Demonstrates pattern matching (type, constant, var) with switch/when guards and gotchas like int 5 vs 5L, local functions for clearer validation and efficient captured-state code, and valueTask for ASP.NET Core async optimization. Mentions throw as expression and readable numeric literals with underscores.

AI-written summary · about

  1. 0:00Start
  2. 3:45Tuples
  3. 10:23Value Types
  4. 13:23Anonymous Types
  5. 17:02Element Names
  6. 19:09Deconstruction
  7. 32:39Pattern Matching
  8. 33:09Three Patterns in C-Sharp Seven
  9. 36:01Use of Unassigned Local Variable
  10. 50:03Var
  11. 52:40Local Functions
  12. 52:56Fibonacci Sequence
  13. 56:50Local Methods
  14. 58:25Custom Async Return Types
  15. 1:00:41Nested Conditional Operator
~/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.