using System.Collections.Generic; Listnumbers = new List (); numbers.Add(1); numbers.Add(2); numbers.Add(3);
int[] numbers = new int[3]; numbers[0] = 1; numbers[1] = 2; numbers[2] = 3;Both examples use the Sequence Add method to add elements to a collection. The package library for Sequence Add is System.Linq.