Перейти к содержимому

Collection expressions sees the spread operator in C#

Round The Code

0:00 / 0:00

Collection expressions sees the spread operator in C#

3 121 просмотр · 2 года назад
Round The Code
11,8 тыс. подписчиков
3 121 просмотр · 2 года назад
The spread operator comes to C# as part of collection expressions (also known as collection literals). As a new feature in C# 12, it allows you to join collection types together, such as an array, a span and a list. In-addition, there is a syntax change that reduces the amount of code bloat when declaring a collection type. We'll show you how to use collection expressions so that you can join collection types together and add additional values. 📖 Learn .NET and C# with our online courses 📖 https://www.roundthecode.com/dotnet-c... ► More information: https://www.roundthecode.com/dotnet-t... 🎥 Playlist 🎥    • .NET 8 and C# 12 new features   ► Chapters 0:00 About the spread operator 0:18 Syntax change 1:02 Spread operator 1:56 Coding challenges 2:06 Collection types support 2:48 What to watch next #csharp #csharpprogramming #csharpdotnet