or delete a part of it, similar to C++: CArray.Add()/RemoveAt().
Through ArrayList and using Buffer.BlockCopy I can double it but what about removing a part of it.
Printable View
or delete a part of it, similar to C++: CArray.Add()/RemoveAt().
Through ArrayList and using Buffer.BlockCopy I can double it but what about removing a part of it.
sorry, I think I've found a solution. Queue method looks like exceeding my requirements.
What is wrong about ArrayList? I think it is the right class for you. Or do you want the array to physicaly cut allocated memory if removing elements? This is not good demand. If memory is already allocated to the array, it cost nothing to keep it allocated event empty. Shrinking the allocated memory is unnecessary overhead, because, the managed memory has to be reorganized.