Jose,
Because structs will be boxed when you put them into an ArrayList, making it
slightly more difficult to update them.
Classes will not be boxed when they are put into the ArrayList as they are
already reference types, so they are easier to work within an ArrayList.
Remember that an ArrayList is designed to hold Objects (reference types).
Hope this helps
Jay
"Jose Caliente" <jc@noble.net> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
why classes? when a struct will do
jc
"Tom Shelton" <to*@mtogden.com> wrote in message
news:eE**************@tk2msftngp13.phx.gbl... On 2004-01-23, RBCC <pu************@email.com> wrote: Does anyone know how to dynamically allocate array of structures? Or where Ican find info on this on the web? John
Oh, or better yet - if possible - change your structures to classes and
use an ArrayList...
--
Tom Shelton [MVP]