~/talk

Exploring Pattern Matching in C#

Talkat NDC London 2017 · 2017-01-16..01-20· [c-sharp]
slides:none on file

Walks through C# 7 pattern matching: shows is expressions that test and extract in one line, switch with when guards that order-case and introduce block scopes, and the constant/type/null patterns including surprising null behavior for nullable ints and strings. Refactors two real projects (NotATime and a tag helper) to replace nested ifs, cutting roughly 15–20 lines and clarifying four distinct cases. Explains variable scoping, definite assignment rules, and future patterns like var/wildcard/positional.

AI-written summary · about

  1. 0:00Start
  2. 1:34Most popular technologies
  3. 4:01Pattern Matching Definition
  4. 38:31Conclusion
~/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.