Modern C#: A Dive into the Community's Most Loved new Features.
Can you replace complex conditional logic with a single, elegant expression? Discover how modern C# pattern matching and switch expressions make it possible.
#1about 3 minutes
Overview of modern C# community-loved features
A brief introduction to the four key modern C# features that will be covered: records, pattern matching, switch expressions, and DateOnly/TimeOnly.
#2about 6 minutes
Using records for concise and immutable data types
Records provide a simple, one-line syntax for creating immutable reference or value types, preventing accidental data modification.
#3about 6 minutes
Simplifying conditional logic with pattern matching
Pattern matching allows for more expressive and readable conditional checks using constant, relational, type, and list patterns.
#4about 3 minutes
Writing concise switch statements with expressions
Switch expressions offer a more compact syntax for switch logic, reducing boilerplate code and improving readability.
#5about 4 minutes
Separating date and time concerns with new types
The DateOnly and TimeOnly types simplify code by allowing you to work with date or time values independently, unlike the traditional DateTime type.
#6about 1 minute
Deciding when to adopt new C# features
Consider factors like project age, budget, and effort when deciding whether to implement modern features in new or existing codebases.
#7about 3 minutes
How to stay current with C# development
Follow Microsoft documentation, community creators like Nick Chapsas, and experiment with preview builds to keep up with annual C# releases.
#8about 2 minutes
Q&A on record immutability and DateOnly support
A discussion on why records are stricter about immutability than classes with init-only setters and the state of database support for DateOnly.
Related jobs
Jobs that call for the skills explored in this talk.
Matching moments
02:13 MIN
Introduction to five key features in C# 10
5 features that help you get the most out of C# 10
02:48 MIN
A brief history of C# from version 1 to 12
C# 13 Unleashed: Live Demos of my Top 10 Cutting-Edge Features!
03:14 MIN
Recapping the WeAreDevelopers World Congress 2025
WeAreDevelopers LIVE - Our World Congress 2025 & CODE100 Highlights with Jack Barber and Marco Podien
02:22 MIN
Moving from C# to modern languages like Go
Coffee with developers - Brian Morrison
08:48 MIN
The evolution of London's web developer community events
Using all the HTML, Running State of the Browser and "Modern" is Rubbish
01:51 MIN
A developer's journey through programming languages
Coffee with Developers - Martyn Kilbryde
02:59 MIN
Audience Q&A on patterns, typescript, and frameworks
10 must-know design patterns for JS Devs
02:45 MIN
The evolution of .NET as a modern development platform
The Best Upcoming IT WebinarsNow that you already know what IT webinars are and how they can help you level up your professional appeal, you might want actually to get into one. Live tech webinars are one of the best ways to stay on top of the latest trends and tools because eit...
All the videos of Halfstack London 2024!Last month was Halfstack London, a conference about the web, JavaScript and half a dozen other things. We were there to deliver a talk, but also to record all the sessions and we're happy to share them with you. It took a bit as we had to wait for th...
Chris Heilmann
WeAreDevelopers LIVE days are changing - get ready to take partStarting with this week's Web Dev Day edition of WeAreDevelopers LIVE Days, we changed the the way we run these online conferences. The main differences are:Shorter talks (half an hour tops)More interaction in Q&AA tips and tricks "Did you know" sect...
From learning to earning
Jobs that call for the skills explored in this talk.