C# 11: Features preview and what's new for .NET 7

preview_player
Показать описание
C# 11 in a nutshell, looking at a preview of features, and what's new for .NET 7.

In the video you'll learn how to download .NET 7 preview, and its release date.

The C# 11 features we will take you through include:

► Required members
Requiring to set a value to a property when an object is initialised.

► Auto-default structs
Implicitly setting the default value to a property when a struct is initialised.

► Raw string literals
Make code more readable by not having to escape any character.

► Generic attributes
Allow an attribute to use a generic type.

► List patterns
Find a match in a list pattern with any length and any value.

💻 Download the code example for this demo 💻

📖 Learn .NET and C# with our online courses 📖

► More information:

► Chapters
0:00 Preview C# 11 features
0:14 Dependency injection course
0:24 How to use C# 11
1:20 Feature #1: Required members
2:38 Feature #2: Auto-default structs
3:08 Feature #3: Raw string literals
4:04 Feature #4: Generic attributes
4:32 Feature #5: List patterns
7:26 Download the code sample

#csharp11 #dotnet7 #dotnet
Рекомендации по теме
Комментарии
Автор

Don't forget static abstract members on interfaces!

RobLang
Автор

Great video, but I hate the white background. Dark mode is so much easier to read.

micro