Monday, April 2, 2007

Array List To Type Array

static void Main(string[] args)
{
ArrayList al = new ArrayList();
al.Add("xxx");
al.Add("zzz");
string[] strArray = (string[])al.ToArray(typeof(string));
}

No comments:

Post a Comment