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.
Glossary: C# Beyond the Basics
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.