2026-04-13 csharp-15dotnet-11collection-expressions C# 15 Collection Expression Arguments: Pass Constructors Inline with with(...) C# 15 adds the with(...) element to collection expressions, letting you pass capacity, comparers, and other constructor arguments directly in the initializer.