user@runtime:~/blog$ grep -l "collection-expressions" posts/*.md

collection-expressions

2 posts tagged with collection-expressions.

2026-04-03 8m

Collection Expression Arguments in C# 15: Passing Capacity, Comparers, and More with the with() Syntax

C# 15 adds the with() element to collection expressions, letting you pass constructor arguments like capacity and comparers directly inside the bracket syntax. Here is how it works, what it compiles to, and where it falls short.

2025-07-01 4m

Collection Expressions Deep Dive: Beyond the Basics

A thorough exploration of C# 12 collection expressions, from syntax shortcuts to spread operators and performance considerations.