Eitan,
The only reason I can see using an ArrayList is when all the values that
you are going to store do not have a common base class (other than object).
However, in this case, I would suggest using List<object>, as List<object>
supports the IList<Tinterfac e still.
If the types that you are going to store in the list are all of the same
type, then use the generic class. In most instances (especially when
storing value types, because there is no boxing) you will see a performance
gain over the ArrayList class (even with reference types, there is a slight
performance gain).
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard. caspershouse.co m
"Eitan" <Ei***@discussi ons.microsoft.c omwrote in message
news:39******** *************** ***********@mic rosoft.com...
Hello,
I need an array of objects. I am considering using either ArrayList Class
or List Generic Class.
Any guidelins regarding when to use one or the other?
Thanks
Eitan