Search
Categories
  ASP.NET
Visual C#
Visual Basic
.NET Framework
ADO.NET
AJAX
LINQ
Java
 
How To Rating
 
5.0 out of 5


Total Votes: 1
         
1 2 3 4 5
 




How to Merge two ArrayList Collections in .NET

Author: Waqas Anwar - Posted Date: 25-June-2009 - Category: .NET Framework   
Bookmark and Share
If you have two ArrayList collections and you want to merge items available in both collections, you can use AddRange method of ArrayList class
ArrayList list1 = new ArrayList();
ArrayList list2 = new ArrayList();

list1.Add("HTML");
list1.Add("XML");

list2.Add("CSS");
list2.Add("PHP");

list1.AddRange(list2);
LEAVE YOUR COMMENTS LEAVE YOUR COMMENTS
 Name (required)  
 Email (required
 Website


 

 


 
 
 

Categories

My Portfolio

Website Links


Copyright @ 2009 EzzyLearning.com