interviews.dotnetthread.com

↑ Grab this Headline Animator

Tuesday, September 16, 2008

What is the best way to add items from an Array into ArrayList?

Use AddRange method of the ArrayList.
string[] arr = new string[] { "ram", "shyam", "mohan" };
ArrayList arrList = new ArrayList();
arrList.AddRange(arr);

Submit this story to DotNetKicks

No comments:

Post a Comment

Post your comments/questions/feedback for this Article.

 

Latest Articles