The title pretty much sums it up. Now that we have List<T>
's why would anyone want to use an ArrayList
instead? The only reason I can think of is if you are forced to use an old version of .NET before List<T>
was implemented?
As you said, if for some reason you are stuck with .Net 1.1 then you don't have a choice.
Your question seems to indicate that there is a choice. So then there is no reason to userArrayList
. Anything that ArrayList
can do, List<T>
can do as well, if not better.
Short answer, no. ArrayList was from when .NET didn't support generics. List is the more flexible (generic) way to handle lists. In fact, I don't think Silverlight even supports ArrayLists at all.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With