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

From learning to earning

Jobs that call for the skills explored in this talk.

Software Engineer

Software Engineer

tree-IT GmbH
Bad Neustadt an der Saale, Germany

Remote
54-80K
Intermediate
Senior
Java
TypeScript
Spring Boot
Rust and GoLang

Rust and GoLang

NHe4a GmbH
Karlsruhe, Germany

Remote
55-65K
Intermediate
Senior
Go
Rust