Wednesday, September 23, 2009

Convert ArrayList into Array

ArrayList arrayList = new ArrayList();
arrayList.Add("paresh");
arrayList.Add("sonal");
string[] stringArray = (string[])arrayList.ToArray(typeof(string));

No comments:

Post a Comment