realloc

  • Thread starter Thread starter Chris
  • Start date Start date
C

Chris

Hi,

does something like a realloc() for arrays exist in C# ? (like in C)
or do you have to create a new array-object yourself an then copy the
already existing values in the new array ?

thnx
Chris
 
Chris said:
does something like a realloc() for arrays exist in C# ? (like in C)
or do you have to create a new array-object yourself an then copy the
already existing values in the new array ?

The latter. You might want to consider using an ArrayList as a flexible
collection, however.
 
Back
Top