Generic List - Copy

  • Thread starter Thread starter Doug
  • Start date Start date
D

Doug

Is there a way to make a copy of a Generic List so that if I remove
rows from the original they are not removed from the copy?
 
Yep, List<any_type> copiedList = sourceList.GetRange(0, sourceList.Count);

That did it. Thank you Alex!
 

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