Louëlla Creemers

5 features that help you get the most out of C# 10

Tired of writing boilerplate code? See how C# 10 features like global usings and record types can help you write cleaner, more productive code.

5 features that help you get the most out of C# 10
#1about 2 minutes

Introduction to five key features in C# 10

An overview of five features in C# 10 and .NET 6 designed to make code cleaner and development easier for everyday projects.

#2about 1 minute

Simplifying console apps with top-level statements

C# 10 removes the need for boilerplate code like namespaces, classes, and a main method for simple applications.

#3about 4 minutes

Using records for immutable value-based data types

Records are a special class type that is immutable and compared by value, making them easier to print and compare than traditional classes.

#4about 2 minutes

Checking for null parameters with a single line

The `ArgumentNullException.ThrowIfNull` method provides a concise, single-line alternative to traditional if-checks for null parameters.

#5about 2 minutes

Reducing boilerplate code with global usings

Global usings allow you to declare a using directive once in a central file, making it available across the entire project.

#6about 2 minutes

Simplifying object checks with extended property patterns

Extended property patterns in C# 10 allow for cleaner and more readable checks on nested object properties without complex chaining.

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
AP
Anto Pranjić
11 Tips to Make The Most Out of Your First World Congress 
The world’s most awesome event for developers is taking place in less than a month! It’s been far too long since the last time we met in person, but that’s only going to make this year’s WeAreDevelopers World Congress a truly special experience. Conf...
11 Tips to Make The Most Out of Your First World Congress 
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!

From learning to earning

Jobs that call for the skills explored in this talk.