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.

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!
BR
Benjamin Ruschin
What Developers Really Need to Create Great Code Demos
Every developer on earth has, at some point, had another developer to thank for a breakthrough, a success, an aha moment they wouldn’t have had without coming across that blog post, that open-source contribution, that reply on socials or that humble ...
What Developers Really Need to Create Great Code Demos

From learning to earning

Jobs that call for the skills explored in this talk.

C# developer

C# developer

Maandag
Amsterdam, Netherlands

XML
Scrum
Agile Methodologies
Continuous Integration
C# Software Developer

C# Software Developer

Copello Global
Stevenage, United Kingdom

60K
C++
Scrum
Unit Testing
Agile Methodologies
+3