Collections Just Changed in C# 12 and That’s Good
Summary
C# 12 introduces collection literals to simplify initializing collections like lists, arrays, and dictionaries. This feature aims to make the language less painful to work with by providing a more concise syntax for creating and populating these data structures, ultimately saving developers time and reducing code complexity.