using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;
namespace Csharp_JoinArrayList
{
class Program
{
static void Main(string[] args)
{
ArrayList CountryList1 = new ArrayList();
ArrayList CountryList2 = new ArrayList();
CountryList1.Add("Banglades");
CountryList1.Add("India");
CountryList1.Add("Pakistan");
CountryList1.Add("Nepal");
CountryList2.Add("Butan");
CountryList2.Add("Srilanka");
CountryList2.Add("Maldives");
Console.WriteLine("\n\n=====================\n");
Console.WriteLine("Using AddRange Method");
CountryList1.AddRange(CountryList2);
Console.WriteLine("\n\n=====================\n");
foreach (object i in CountryList1)
{
Console.WriteLine("\n {0}", i);
}
Console.WriteLine("\n\n=====================\n");
Console.ReadKey();
}
}
}