C# 12 Collection Expressions and the Spread Operator

preview_player
Показать описание
Initializing arrays is C# has always been easier than initializing other collections. In C#12 we can do it all in the same way.

Related videos:

Topics include:
- Brief history of array initialization
- C#3 collection initializers
- Creating empty collections
- C#12 collection expressions
- Problems initializing Dictionaries
- Initializing multidimensional arrays
- The C#12 spread operator (..)
- Using collection expressions and spread with custom collections
- Initializing with the CollectionBuilder attribute
Рекомендации по теме
Комментарии
Автор

These new features are similar to JavaScript. Are there any other concepts you'd like to import into C# from different languages? Leave a comment.
And if you liked the video, click the 👍.

CodingTutorialsAreGo
Автор

I absolutely love how concise they are for returning an empty set

TheMasonX
Автор

I especially like how you cover earlier features. Doing so makes the content more palatable for those unfamiliar with the newer options. This was informative and thorough. Thanks.

marklord
Автор

One of the hidden gems in youtube to explore! Thank you so much. Nice video.

baturhankahraman
Автор

Cool, thanks for sharing how these new functionalities are implemented, always good to know 👍

rustamhajiyev
Автор

Only just discovered your channel, but so glad I did. Superb teaching skills. Already subscribed. Thanks!

BM-jycb
Автор

good video, thx for sharing all these cool features

kurumi
Автор

19:10 thank you so much I really wanted this instruction

matlee
Автор

var support is coming in C#13 and the compiler will infer the best possible target type for the collection.

obinnaokafor
join shbcf.ru