Append an array list to another one

  • Thread starter Thread starter Curious
  • Start date Start date
C

Curious

Hi,

I have two array lists, mList1, mList2. Both lists contain the same
data type, namely "Entry" type I've defined in my program.

I want to find an efficient method in C#.NET to append mList2 to the
tail of mList1 without having to loop through every single item on
either list. Anyone can advise me how?
 
Curious said:
Hi,

I have two array lists, mList1, mList2. Both lists contain the same
data type, namely "Entry" type I've defined in my program.

I want to find an efficient method in C#.NET to append mList2 to the
tail of mList1 without having to loop through every single item on
either list. Anyone can advise me how?


mList1.AddRange(mList2);
 
Back
Top