Resize System.Array using Array.Resize

185 views Asked by At

Hello there StackOverflowers.

I was wondering if it's possible to resize a System.Array using the shared method Array.Resize.

I can't seem to get it to work; it only works if I, for instance, write: Array.Resize(DirectCast(Array, Byte()), Size)

But I cannot rely on DirectCasts, as the program will not know what types the arrays are.

Thank you.

0

There are 0 answers