C# 12 introduces several new features including primary constructors, terse syntax for collections, anonymous function parameters by default, alias for any type, the nameof refinement, inline arrays, and code interception.
Table of contents
Primary constructorsThe terse syntax to work with collectionsAnonymous function parameters by defaultAlias for any typeThe nameof refinementInline arraysThe code interceptionConclusionSort: