The Add method of the List object adds an element to the end of the list.
Here is the example:
1 2 3 | list.Add(12); |
Here is full example:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | using System; using System.Collections.Generic; class Program { static void Main(string[] args) { var list = new List<int>(); list.Add(12); Console.ReadLine(); } } |