Skip to content

Glossary: C# Beyond the Basics

collection expression

Also written: [ ] list, []

Square brackets that build a list or array in one step, such as `List<decimal> prices = [16m, 15m];`. An empty `[]` makes an empty collection.

Where the book teaches it

Related terms

list pattern