Refactor your code with default lambda parameters - .NET Blog

Explore opportunities to refactor your C# code with default lambda parameters, a new feature in C# 12.

.NET Blog
Refactor your code using alias any type - .NET Blog

Explore the "alias any type" C# 12 feature through a complete demo application.

.NET Blog
Refactor your code with C# collection expressions - .NET Blog

Explore various C# 12 refactoring scenarios for a variety of target types using collection expressions and collection initializers.

.NET Blog
Refactor your C# code with primary constructors - .NET Blog

Explore C# 12's primary constructors through incremental refactoring of a Worker service.

.NET Blog

配列を初期化する (List, IList, ImmutableArray, etc. も初期化する) 《C#12》《コレクション式》
https://qiita.com/muniel/items/8af5b337d9bbbfbd2812?utm_campaign=popular_items&utm_medium=feed&utm_source=popular_items

#qiita #C #NET8 #C_12 #コレクション式

配列を初期化する (List, IList, ImmutableArray, etc. も初期化する) 《C#12》《コレクション式》 - Qiita

配列もListも、同じように初期化する《動作環境》.net8.0 / C#12結論配列の初期化、リストの初期化は以下の方法で書けます。 int[] intList = [2, 3, 5, 7…

Qiita