Monday, September 8, 2008

Convert ArrayList to string[] array

So simple, yet I didn't know it.

VB: stringArray as string[] = arrayList.ToArray(typeof(string)) as string[];

C#: string[] stringArray = (string[])arrayList.ToArray(typeof(string));

1 comment:

electronic signature FAQ said...

It's wonderful that you devote time to articles like this where so many people can truly benefit.