Conversion of an array to generic.list

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
We are currently converting a larger legacy application from .Net1.1 to .Net2.0, both VB. Our new standard is Generic List, instead of arrays.

We are recoding component by component. And while not everything is yet stored in generic.list we end up with compile time errors.

Converting from generic.list to array is supported with myGenList.ToArray().
But from array to generic list isnt that easy.

"Value of type 1-dimensional array of something cannot be convertet to System.Collection.Generic.List(of something)"

I know for sertain that the array consist of the type something, so an runtime exception converting is ok.

Is there a good way to do the workaround untill the hole application is recoded?


View the full article
 
Back
Top