Wednesday, April 2, 2008

Convert Array to ArrayList

I found a really easy way to convert an Array to an ArrayList without having to iterate through the array collection.

I found this on a website - http://www.dotnetspider.com/kb/Article1709.aspx.

The original code was in C#, but I converted it to VB for my purposes...

Dim ArrayListObject As ArrayList = ArrayList.Adapter(ArrayObject)

Just too simple...

4 comments:

Unknown said...

f*ckin' love u dude!

Unknown said...

thanks you very much

Unknown said...

Your tha man!

Oryan said...

It's amazing how a little tip like this can make such a big difference. Totally awesome tip!!!