An example to show C# List.
Example
using System; using System.Collections.Generic; public class ListExample { public static void Main() { //observation: declare a list of integer type List<int> intList = new List<int>(); //Observation: add elements to the list intList.Add(52); intList.Add(63); intList.Add(72); intList.Add(100); intList.Add(110); Console.WriteLine("The values are:"); foreach (int value in intList) Console.WriteLine(value); Console.ReadLine(); } [...]
