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.

Featured Partners

From learning to earning

Jobs that call for the skills explored in this talk.