Dynamic Multidimensional Arrays

  • Thread starter Thread starter Pete Z
  • Start date Start date
P

Pete Z

Hello folks,

How do I achieve this:

redim preserve iaCount(2, iIndex)

with C# please?

Regards
Pete
 
You create a brand new array of the appropriate size and then copy the
elements from the old array and release any pointers to the old array so
that it gets GC'ed when it comes time.
 
Back
Top