Steven Giesel 2/12/2026

Collection Expression Arguments in C# 15 are "out"

Read Original

This article details a specific new feature in the C# 15 preview: the ability to pass arguments, like initial capacity, when creating collections using collection expressions. It notes the syntax changed from a proposed 'args' keyword to using the existing 'with' operator, and provides a code example and a link to official Microsoft documentation.

Collection Expression Arguments in C# 15 are "out"

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week

No top articles yet