using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ListExampe
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("\nAdd Integer item to List collection ");
Console.WriteLine("-----------------------------------");
List<int> intList = new List<int>();
intList.Add(100);
intList.Add(200);
intList.Add(300);
intList.Add(400);
foreach (int List in intList)
{
Console.WriteLine(List);
}
Console.WriteLine("\nAdd String item to List collection ");
Console.WriteLine("-----------------------------------");
List<string> stringList = new List<string>();
stringList.Add("Bangladesh");
stringList.Add("India");
stringList.Add("Pakistan");
stringList.Add("Nepal");
stringList.Add("Maldives");
stringList.Add("Srilanka");
stringList.Add("Bhutan");
stringList.Add("Afganistan");
foreach (string List in stringList)
{
Console.WriteLine(List);
}
Console.ReadLine();
}
}
}