Collection Expression Arguments in C# 15 are "out"
Read OriginalThis 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.
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