Click here to Skip to main content
15,919,028 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how to convert a
list<t> to arraylist</t>
Posted

1 solution

Hi,

try this:
List<string> lst = new List<string>();
lst.Add("1");
lst.Add("2");
lst.Add("3");
lst.Add("4");
ArrayList arrLst = new ArrayList();
arrLst.AddRange(lst);
 
Share this answer
 
Comments
bgadarsh 21-Dec-10 6:00am    
thanks it works
JF2015 21-Dec-10 6:01am    
Glad to help :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900