LANGUAGE
Collection expressions
C# 12+ target-typed collection construction; the spread element includes items of another sequence.
Formal Syntax & Structure
csharp syntaxcsharp
int[] values = [1, 2];Working Example
Example Snippetcsharp
int[] a = [1, 2]; int[] b = [..a, 3];