DevDealRadar
Home › Dev Tooling › C# 15: Collection Expressions Finally Accept Arguments

C# 15: Collection Expressions Finally Accept Arguments

C# 15 adds argument support to collection expressions, removing factory-method boilerplate for custom collection types.

Nov 29, 2026 source: DEV.to topic: Dev Tooling
Affiliate disclosure: this page may contain referral/affiliate links. If you sign up through them we may earn a commission or credit — at no extra cost to you.

Radar snapshot

2/10
Business model
6/10
Indie-hacker fit
25
DEV reactions

The feature has no standalone business model and depends entirely on the .NET ecosystem, but it meaningfully cuts boilerplate for solo .NET builders maintaining custom collection types. How we score

Business breakdown

There is no direct monetization: this is a compiler/language feature shipped with .NET, so the value flows to Microsoft's platform ecosystem and to tooling vendors such as JetBrains and Visual Studio. Target users are .NET teams modernizing codebases, with indirect market opportunity through upgrade-driven tooling and support spend.

Use it if…

C# developers who maintain custom collection types and want less constructor and factory-method boilerplate.

Skip it if…

Developers outside the .NET ecosystem or teams pinned to older C# language versions.

Alternatives & competitors

OptionPositioningPricing
KotlinOffers collection literals and buildList/buildSet builders, but no argument-carrying collection expression syntax.free
SwiftArray and dictionary literals rely on protocol conformances like ExpressibleByArrayLiteral, without argument-passing expressions.free

What an indie dev can do with this

  1. Prototype the argument-taking collection expression on one custom type, such as a matrix or tree, in a scratch project before touching production code.
  2. Confirm your SDK preview and LangVersion settings support C# 15, and keep a fallback factory-method path for older targets.
  3. Measure the boilerplate removed in a real class, then update internal snippets and libraries so teammates adopt the pattern consistently.

FAQ

Is C# 15 collection-expression argument support ready for production?
It is tied to the C# 15 compiler, so treat it as preview until a stable SDK ships; keep the existing factory-method code path for production builds.
Does this replace collection initializers?
No. It complements them by letting collection expressions pass constructor or factory arguments, while initializer syntax remains valid and often clearer for simple cases.
Do I need to upgrade my runtime to use it?
Compiler features and runtime features ship separately, but argument-taking collection expressions depend on the C# 15 compiler; check the matching SDK and target framework before upgrading a whole so

Tags

#devtools #backend #productivity

Related intel

Original: dev.to (DEV.to) · This summary is algorithmically compiled and may contain errors — always check the source. Published Nov 29, 2026.