Hi,
I want to know if this is the most efficient method of fixing my
problem:
I have a custom class and I need to maintain an array of these items.
Initially I used MyCustom[] a = new MyCustom[someSize];
However, a new requirement has popped up which means this array might
change size (adding elements only) so I need to add more MyCustom clases
to my structure.
Having a "ReDim" method is far too slow, so my thinking is an ArrayList
would be the best array object:
ArrayList a = new ArrayList();
a.Add( new MyCustom() );
MyCustom handle = (MyCustom)a[i];
Anyone see any problems with this (performance is very important)
Thanks for the help in advance.
Steven
*** Sent via Developersdex http://www.developersdex.com ***