Louëlla Creemers

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.

Modern C#: A Dive into the Community's Most Loved new Features.
#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.

test

Milly
Vienna, Austria

Intermediate

test

Milly
Vienna, Austria

Intermediate

Featured Partners

Related Articles

View all articles
CH
Chris Heilmann
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...
All the videos of Halfstack London 2024!
LM
Luis Minvielle
The Best Upcoming IT Webinars
Now 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...
The Best Upcoming IT Webinars
CH
Chris Heilmann
WeAreDevelopers LIVE days are changing - get ready to take part
Starting 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...
WeAreDevelopers LIVE days are changing - get ready to take part

From learning to earning

Jobs that call for the skills explored in this talk.

C# Software Developer

C# Software Developer

Copello Global
Stevenage, United Kingdom

60K
Unit testing
Continuous Integration
Configuration Management