C# 12.0: collection expressions
![C# 12.0: collection expressions C# 12.0: collection expressions](https://res.cloudinary.com/endjin/image/upload/f_auto/q_80/assets/images/blog/2024/11/cs12-collection expressions.png)
C# 12.0 provides a new, simpler syntax for initializing expressions. It typically generates the most efficient code possible, although as you'll see, it's useful to understand the choices it makes.
Published on:
Learn more