copy ArrayList to ArrayList

  • Thread starter Thread starter will
  • Start date Start date
W

will

hi,

i have two ArrayLists with identical elements, is it possible to join
them together? the ArrayList.CopyTo only copies to an array, but not
arraylist.

thanks
will.
 
ArrayList a = new ArrayList();
ArrayList b = new ArrayList();

b.AddRange(a);
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top